jon jon bon bon jon jon bon bon - 4 months ago 8x
Javascript Question

What is a good strategy for es6 integration?

when I do not want to use a transpiler. I want to write straight Javascript? For example if I feature detect that

is available, so what I can not re-write my code to use block level scoping.

For example when should I start using let? Is it even possible to form a general strategy?


One simple solutin is to just use block scoping using es5 var.

Once es6 is fully supported you can just do a simple find / replace for var with let.

At that time you can also start using let.