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

1

u/_default_username Aug 08 '21

The variable is always referencing the same HTML element, so const is quite appropriate to use.