You should iterate over the elements of the data array and print to the console the number of values in the array that are not NaN.
Builtin JS Functions
Not NaN value
Report a typo
Write a program in JavaScript
let data = [11, null, NaN, 'Hello', 24]
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.