JavaScript is a compiled language
JS ⟩ concepts ⟩ compiler ⟩ JS is compiled
JavaScript code is compiled first, and then execute.
⛔ SyntaxError: unexpected token "xxx"
replit:JS is a compiled language
var greeting = "Hello"; console.log(greeting); // ⭐️ this line doesn't have a chance to run❗ greeting = ."Hi"; // ⭐️ error occurred in the "tokenizing" stage // ↑ // of compilation❗ // ↑ // ⛔ SyntaxError: unexpected token .
YDKJS: Scope & Closures (v.2) ⟩ Ch. 1: What's the Scope?
Last updated 2 years ago