Computer Science, asked by prempundir82, 5 hours ago

Describe the usage of the following
methods in Janascript
1 document write ()
2 window prompt ()
3 window olert ()
4 window confirm ()
5 parselnt ()​

Answers

Answered by chaitanyaselote
0

Answer:

var person = prompt("Please enter your name", "Harry Potter");

if (person != null) {

document.getElementById("demo").innerHTML =

"Hello " + person + "! How are you today?";

}

Similar questions