do while scope

Glen Huang curvedmark at gmail.com
Fri Apr 17 14:57:49 UTC 2015


```js
do {
  let a = 1;
} while (a);
```
is "a" undefined in the while condition? This seems like a gotcha.




More information about the es-discuss mailing list