DEV Community

Discussion on: Four tricky JavaScript concepts in one line of code

Collapse
 
fredgarcia profile image
Garcia

Did it work with var in place of const ?

Collapse
 
mrhiden profile image
Marek Krzyżowski

Should work, but I would stay with const.