Presentation is loading. Please wait.

Presentation is loading. Please wait.

JavaScript with Input & Output Step 1: Use tags JavaScript Template.

Similar presentations


Presentation on theme: "JavaScript with Input & Output Step 1: Use tags JavaScript Template."— Presentation transcript:

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


Download ppt "JavaScript with Input & Output Step 1: Use tags JavaScript Template."

Similar presentations


Ads by Google