Monday, 15 January 2018

Display Student Details In JavaScript Using Prompt

<!doctype html>
<html>
<head>
</head>
<body>
<script>
var name =prompt("Enter Name");
var age =parseInt(prompt("Enter Age"));
var mark=parseFloat(prompt("Enter mark"));
alert("StudentDetails\n"+"Name::"+name+"\nAge::"+age+"\nMarks::"+mark);
</script>
</body>

</html>

No comments:

Post a Comment

Global Infrastructure and its components in AWS

You may operate your workloads wherever and however you choose with the AWS Global Infrastructure, and you'll use the same network, cont...