DEV Community

loading...

Discussion on: Demystifying "const" variables in JavaScript

Collapse
adam_cyclones profile image
Adam Crockett

One reason to use var: prototype something in the browser console and get something wrong, for that session your const won't be changeable, so use var for fast prototyping