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

An ordinary function reaches the end of its body without returning an expression. What is the call result?

  1. The value of the last expression evaluated in the body
  2. The value undefinedՃիշտ պատասխան
  3. The value null
  4. A SyntaxError

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

A function that completes without supplying a return expression produces undefined. JavaScript does not implicitly return the last expression from an ordinary function body, which distinguishes it from an arrow expression body.

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

Սկսել վարժանքը
Հարց 78: An ordinary function reaches the end of its body without… · JavaScript Fundamentals · Questena