
JavaScript
Whether a programming language needs a compiler or an interpreter depends on its design. Compiled languages, like C or Rust, require a compiler to translate code into machine language before execution. Interpreted languages, like Python or
JavaScript, use an interpreter to execute code line-by-line at runtime. Some languages, like
Java, use a combination of both, compiling code into bytecode that runs on a virtual machine.