Question:

What does the following code print to the console?

function a () {};
console.log(a.length);

Answer:

0

Functions that don't have any named parameters have a length of 0.


Keywords:

© 2017 QuizBucket.org