You should calculate the sum of all values in the data array and check that it is a finite number. Output the result of the check to the console.
Builtin JS Functions
isFinite() function
Report a typo
Write a program in JavaScript
let data = [5, -13, 3, 21, 0, 9]
___
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.