Question
1. var now = new Date(); var hour = now.getHours(); Fill in the blank. If the current date and time is Tue March 9, 2021
1. var now = new Date(); var hour = now.getHours(); Fill in the blank. If the current date and time is Tue March 9, 2021 05:32:08 PM, what will be the value of hour?
2. Fill in the blank. How many times will the body of the loop be executed? var Total = 1; for (intIndex = 1; intIndex < 7 ; intIndex += 3) { Total += intIndex; }
3. Fill in the blank. What is the result after the execution of the following operation 39%5?
4. What will be the output of the following code snippet? var x = 6; var y = 5; x++; if (x > y) document.writeln(x); else document.writeln("x is greater than y");
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started