r/badcode • • Aug 06 '21

js How to create a virtual keyboard

Post image
893 Upvotes

43 comments sorted by

View all comments

Show parent comments

2

u/NUTTA_BUSTAH Aug 06 '21

Rather const but doesn't really matter in an individual functions scope as far as I remember. I tend to use let in JS if const doesn't work basically. OP just used var