Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ unexpected token "xxx"
⛔ :
replit:
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 .
arrow function returning object literal needs (...)❗️
YDKJS: Scope & Closures (v.2) ⟩