@sebmck Why is babel treating functions as blocked scoped here: https://babeljs.io/repl/#?evaluate=true&presets=es2015%2Creact%2Cstage-2&code=%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20let%20data%20%3D%20%7B%7D%3B%0A%20%20var%20foo%20%3D%201%3B%0A%0A%20%20function%20write(key%2C%20val)%20%7B%0A%20%20%20%20data%5Bkey%5D%20%3D%20val%3B%0A%20%20%7D%0A%0A%20%20function%20read(key)%20%7B%0A%20%20%20%20return%20data%5Bkey%5D%3B%0A%20%20%7D%0A%7D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%0Awrite('foo'%2C%20'bar')%3B%0Aread('message')%3B%0Aconsole.log(data)%3B …
-
-
@sebmck Assumed they were function scoped. Strangely I could see them outside their block in codepen. I looked at docs, your right. Thanks.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 