QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 26

A string value contains the text don't. Which literal form can represent it without changing the text?

  1. Only single quotes can represent it
  2. "don't"Ճիշտ պատասխան
  3. Single and double quotes create different value types
  4. Quotes cannot represent an apostrophe

Բացատրություն

Double quotes can surround text containing an unescaped apostrophe because the delimiter is different from that character. Claiming that only one quote style creates strings invents a semantic distinction between single- and double-quoted literals.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 26: A string value contains the text don't. Which literal form… · JavaScript Fundamentals · Questena