jon jon bon bon jon jon bon bon - 1 year ago 73
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download