Question: Answer the following questions using JavaScript: a. How is JavaScript different from Java? Explain in your own words. b. Explain the varius JavaScript data types?
Answer the following questions using JavaScript: a. How is JavaScript different from Java? Explain in your own words. b. Explain the varius JavaScript data types? c. What is the difference between var, let and const in JavaScript? Explain in your own words. d. What will be the output of the following code is executed? Explain in your own words. for (var i = 0; i <5; i++) { setTimeout(function() {console.log(i); }, i*1000); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
