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

Classify the statements about expression interpolation in JavaScript strings. Select all that apply.

  1. A template placeholder evaluates its expressionՃիշտ պատասխան
  2. An ordinary quoted string interpolates the same way
  3. The expression result is converted to textՃիշտ պատասխան
  4. Interpolation inserts source code without evaluation

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

A template placeholder evaluates its contained expression and converts the resulting value to text for insertion. The same marker-like characters inside an ordinary quoted string remain literal text, so quoted strings do not gain interpolation behavior.

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

Սկսել վարժանքը
Հարց 28: Classify the statements about expression interpolation in… · JavaScript Fundamentals · Questena