I may have encountered a mistake in of the quizes in this lecture. In the 3rd question (“Which of these is one of the correct ways JavaScript handles arrays when converting them to numbers using the Number constructor?”) in my opinion there are 2 correct answers:
An array with a single number converts to that number, while an empty array returns 0.
But then shouldn’t this part of the lecture be slightly different?
“When working with arrays there are a few things to consider.
An empty array will return 0. An array with a single number will return that number. An array with multiple numbers returns NaN. And an array with string(s) will also return NaN.”
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.