What does ' ', and “ ”, and no quotes mean in Javascript?
问题 I realized I've been switching between them with no understanding as to why, and am finding it hard to search for. 回答1: ' ' and " " are the same thing; they are used to define string literals. Things without quotes can be an identifier, keyword, non-string literal, property name or a number (may have missed one). Examples: "hello world" literal (string) 'hello world' literal (string) with same contents document identifier (object) { a: 1 } property name if keyword (start conditional statement