I was wondering if there was any way for me to run older versions of javascript in the web browser! I have apps that require ECMAScript 3 that broke and I was wondering if there was anyway to run older versions without a polyfill library!
Asked
Active
Viewed 2,137 times
5
-
2JavaScript (ES) engines are built into the browsers -- if you want to find a specific engine, you'll have to find a browser that implemented it (digging up old Internet Explorers). However, very few things are depreciated -- so you can program in an older style and it should still be valid. – Doug May 14 '18 at 19:14
-
Thanks for fixing my grammer! I am bad at spelling and I am very young (won’t say exact age so I can keep my account) but around if you get the picture 6th to 8th grade! – Jacob Morris May 14 '18 at 19:15
-
4You should not be using goto. That kind of coding leads to all kinds of errors in your code that are hard to trace... I would STRONGLY recommend learning the "new" syntax (if, for, while, etc.) over using goto – Jonathan Rys May 14 '18 at 19:17
-
@Jonathan Rys Ok!! I’ll try learning that syntax!! I use w3schools.com which doesn’t have the best teaching method do you know any good sites or books for learning ECMAScript 5/6? – Jacob Morris May 14 '18 at 19:19
-
Here's a joke post about using goto: https://stackoverflow.com/questions/9751207/how-can-i-use-goto-in-javascript – Cody G May 14 '18 at 19:19
-
1@JacobMorris https://www.codecademy.com/ – Jonathan Rys May 14 '18 at 19:21
-
@torazaburo Yes, those were the OP's words I was quoting. In fact that syntax predates JavaScript by a few decades. I believe Djikstra came up with structured programming. – Jonathan Rys May 14 '18 at 19:34
-
@JacobMorris great start: https://eloquentjavascript.net/. – ibrahim mahrir May 14 '18 at 19:40
2 Answers
4
While it works fine, I want it to use ECMAScript 3 for functions like goto and such
JavaScript does not have, and has never had, goto
.
and I dislike using the newer keywords.
Whatever you mean by "newer keywords", if you dislike using them, then don't use them.
Does anyone know of a way to use older ECMAScript/JavaScript versions?
Yes, use any current ES/JS version, since they are all completely backward compatible for all practical purposes.
-
1Interesting, https://www-archive.mozilla.org/js/language/E262-3.pdf `ECMAScript has no goto statement`, it was only a future reserved keyword. – Cody G May 14 '18 at 19:39
-
-
@ibrahimmahrir I deleted my account due to a moderator who was acting dictatorially in a dispute on Meta. Now I hang out when I really don't have anything better to do, which is almost never. – May 14 '18 at 19:49
-
3
Take a look at Babel, it's a traspiler of Js to Js, you can set the enter version and the out version and it's easy to setup.

Gabriel Carneiro
- 643
- 5
- 16