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

apply function in R

1) apply function: It takes 3 arguments matrix,margin and function.. Example: m<-matrix(c(1,2,3,4),nrow=2,ncol=2) m #1 indicates it is ap...