Computer Science, asked by jessica2607, 1 year ago

write the java script program to display your name if the name is divya​

Answers

Answered by charlie1505
1

Answer:

var customerName = prompt("Please enter your name", "<name goes here>");

if (customerName!= null) {

document.getElementById("welcome").innerHTML =

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

}

Note-

just put the name there mension<name here>

Similar questions