JavaScript — is it Compiled or Interpreted?

So You Think JavaScript is Interpreted? According to most of the internet, JavaScript is an interpreted language, but that’s not necessarily true. Here’s Why.

image from fossbytes.com

Compilation vs. Interpretation

So — is JavaScript Compiled or Interpreted

console.log('Hippity Hoppity');
oops oops;
max(1, 2);
// 2
function max(num1, num2){
return num1 > num2 ? num1 : num2;
}

So, JavaScript is a compiled language, right?

Well?! Is it Compiled then?

Male, 21, Israeli Full Stack Developer