Timeline for Is there any reason to use the "var" keyword in ES6?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 2, 2021 at 6:47 | comment | added | Qasim | For instances where I need to set a flag variable and check for it inside a block, var is what I still use. I do wonder though, if this is not the best way. Using let doesn't quite work though. | |
| Feb 24, 2015 at 23:06 | comment | added | Jerry101 | A temp var in a block is available inside the entire function, not block-scoped. It's a misleading feature. | |
| Feb 24, 2015 at 22:41 | review | First posts | |||
| Feb 24, 2015 at 22:44 | |||||
| Feb 24, 2015 at 22:40 | history | answered | curiousdork | CC BY-SA 3.0 |