Question:

What does the following code print to the console?

var boo = function () {};
console.log(boo.name);

Answer:

""

Anonymous functions also have a name property, but it returns the empty string.


Keywords:

© 2017 QuizBucket.org