Exercise 2: Fix the Code
Explore how to identify and fix common coding errors in a JavaScript function that sums prime numbers up to a specified age. Learn to apply debugging skills and ESLint tools to ensure the code terminates properly and returns the correct result.
We'll cover the following...
We'll cover the following...
Problem statement
The code given in this exercise will not terminate. You have to fix the code to get the desired output.
📍 Use your knowledge from the previous lessons to debug the code.
Function description
The ...