Question: Javascript 16 Write a function that will add all the integers from 1 to 10. 18 Write a function that will determine if a number

Javascript

16 Write a function that will add all the integers from 1 to 10.

18 Write a function that will determine if a number entered by the user is even or odd. Use a loop to allow the user to enter as many numbers as desired and be sure to use an appropriate sentinel value for the user to end the program.

20 Write a function that uses the Math.round() method to round any number with a decimal part less than or equal to 0.6 down. For example, the result of using the program with the number 3.6 should be 3 but the result of 3.69 should be 4. Use a loop to allow the user to enter as many numbers as desired and be sure to use an appropriate sentinel value for the user to end the program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!