Question: JavaScript 1 . Write a loop to print all the positive even numbers from 2 to a user defined value in variable end. If the
JavaScript Write a loop to print all the positive even numbers from to a user defined value in variable end. If the variable end is less than then your program will print there is no positive even number between and the variable. Otherwise, print all the even numbers in between. var start ; var end ; console.logPrint positive even numbers between start and end; Your code goes here If start is and end is the output will be Print positive even numbers between and But if I change the value of end to then the output will be Print positive even numbers between and There is no positive even number between and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
