r/learnjavascript • • Oct 11 '20

JavaScript can keep you safe

Post image
1.0k Upvotes

87 comments sorted by

View all comments

105

u/warpedspockclone Oct 11 '20 edited Oct 11 '20

In my case, I use const. Y'all can use let.

Edit: to clear up any misunderstanding, here ya go https://youtu.be/AuBC2cwVnG4

9

u/[deleted] Oct 11 '20

lmao as you get shot

Uncaught TypeError: invalid assignment to const 'still_alive'