4 ms·
>JS is backward compatible. So it got that too from Java other than the funky name. You mean forward compatible. Which is unlike in Java. New code (e.g. with
by coldtea 9y ago
>JS is backward compatible. So it got that too from Java other than the funky name.
You mean forward compatible. Which is unlike in Java.
New code (e.g. with ES6 features) doesn't work in older JS engines / browsers -- that's why we have transpilers.
- pas 9y agoJava 8 lambas don't work on Java 6 JRE/JVMs either. But your code is "futureproof". The spec/language/VM is backward compatible with old code. (In the sense that you can drop in the new version and old code runs.)