I was reading this excellent article on V8, Google\'s Javascript engine: https://developers.google.com/v8/design#mach_code.
At one point, they say that Javascript is
Here, let me demo the code:
later(); // prove that js is a compiling language
function later(num) {
console.log("Your number is: " + num);
}
This piece of code could run both on Chrome Browser and Node js.
If anyone says that js is an interpreted language, then this piece of code would crash, as when u run later(), it should not know the later function body.
This could prove that js is a compiled language, as it compile later function (so machine could know it), then execute it.