Question: Declare a variable called num and assign it a numeric value. Use a conditional statement ( if / else ) to check if the value
Declare a variable called "num" and assign it a numeric value.
Use a conditional statement ifelse to check if the value of "num" is greater than If it is print "The value of num is greater than to the console. If it is not, print "The value of num is less than or equal to to the console.
Use a conditional statement switch to check the value of "num". If the value is print "The value of num is If the value is print "The value of num is If the value is print "The value of num is If the value is not or print "The value of num is not or to the console.
Save the HTML file and open it in a web browser. Open the developer console and verify that the output of the conditional statements is correct.
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
