Exercise 1: The First Javascript Program

 

<html>

<head><title>Javascript Code </head></title>

<body>

<script language = "javascript" type = "text/javascript">

 

var name,age,course,skill,subject ;

document.write("<br> Welcome to Javascript Programming");

name=prompt("Your Name Here");

document.write("<br> Name: <b>" +name) ;

age=prompt("Age");

document.write("<br> Age: <b>" +age );

course=prompt("Enter your course");

document.write("<br> Course: <b>" +course );

skill=prompt("Enter your talent/skills");

document.write("<br> Talent: <b>" +skill );

subject=prompt("What's your favourite subject?");

document.write("<br> Subject: <b>" +subject );

</script>

</body>

</html>







Output


Comments

Popular posts from this blog

Animation Transition Activity

Adding A Youtube Link Embed

let's talk about Sketches