Download presentation
Presentation is loading. Please wait.
1
JavaScript with Input & Output Step 1: Use tags JavaScript Template
2
Step 2: Welcome the user! JavaScript Template alert("Hello, World!");
3
Step 3: Ask the user to input a number Enter a number: JavaScript Template alert("Hello, World!"); number=prompt(“Enter a number”, 0);
4
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
5
Write the JavaScript code for the following output
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.