JavaScript with Input & Output Step 1: Use tags JavaScript Template
Step 2: Welcome the user! JavaScript Template alert("Hello, World!");
Step 3: Ask the user to input a number Enter a number: JavaScript Template alert("Hello, World!"); number=prompt(“Enter a number”, 0);
Step 4: Print out the number entered JavaScript Template alert("Hello, World!"); number= prompt( Enter a number”, 0); document.write (“Number is: " + number); Number is: 3
Write the JavaScript code for the following output