*️token
🚧 施工中
tokens are:
- keywords ( - if,- else,- var...)
- punctuators ( - +,- -,- ?,- {,- }...)
- generating tokens - lexing stage (e.g., - var a = 2;->- var,- a,- =,- 2,- ;)
 
- These tokens are the reserved word, identifiers, literals, and punctuators of the ECMAScript language. 
- Moreover, line terminators, although not considered to be tokens, also become part of the stream of input elements and guide the process of automatic semicolon insertion (12.9). 👉 ECMA spec 
⛔ 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 .Last updated
Was this helpful?