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

Classify the statements about JavaScript functions and typeof. Select all that apply.

  1. typeof applied to a declared function produces functionՃիշտ պատասխան
  2. A function value makes typeof produce object
  3. typeof applied to x => x + 1 produces functionՃիշտ պատասխան
  4. The typeof result proves function is a primitive type

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

Applying typeof to a callable function object produces the string function, even though the value is still an object rather than a primitive. The claims that it produces object or creates a primitive function category each mistake the operator's label for the value model.

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

Սկսել վարժանքը
Հարց 4: Classify the statements about JavaScript functions and… · JavaScript Fundamentals · Questena