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

A function has parameters a and b, no defaults, and is called with only the argument 7. Which statements are true? Select all that apply.

  1. The call is allowed to proceedՃիշտ պատասխան
  2. The call throws because every parameter requires an argument
  3. Parameter b receives undefinedՃիշտ պատասխան
  4. Parameter b automatically receives null

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

JavaScript allows the call even though it supplies fewer arguments than named parameters. The first parameter receives 7 and the unmatched second parameter receives undefined; neither a mandatory arity error nor an automatic null value is introduced.

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

Սկսել վարժանքը
Հարց 75: A function has parameters a and b, no defaults, and is… · JavaScript Fundamentals · Questena