new scope block for each line

11 views
Skip to first unread message

Seth C

unread,
Dec 27, 2017, 2:18:51 AM12/27/17
to nodejs
I program chat bots for multiplayerpiano.com using node.js, and i recently discovered that the REPL (codeanywhere) creates a new scope for each line (example below)
But then, when I declare a var without using var, let, or const, it works. Is there a way to fix this? 


~Seth C
Reply all
Reply to author
Forward
0 new messages