Question: Based on the work you did on the previous exercise, you are required to take it further by adding a new feature. This feature is

Based on the work you did on the previous exercise, you are required to take it further by adding a new feature. This feature is about finding the sum of all the prime numbers you found within the range that the user entered. To do this, you will have to add a check box that when the user checks it, another line in the div holding the results will show the total. If the user does not select the check box, then the output should be similar to the output of the previous exercise. See the image below for details: First Number: 10 Second Number: 30 Find total of primes Give Me Primes! 11,13,17,19,23,29 Primes total is: 112 Tip: Do some research on how to use check boxes with javascript and how to test if users have selected a check box or not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
