JavaScript is a compiled language.

JavaScript is actually an interpreted language, not a compiled language. This means that the code is executed line by line and translated into machine code at runtime by the JavaScript engine in the browser. This is different from compiled languages like C++ or Java, where the code is compiled into machine code before execution.