Javascript code to accept name from the user and display a welcome on the web page:
let person = prompt("Please enter your name", "Raju");
document.write("Welcome "+ person);
Output:
Welcome 'Raju'
let person = prompt("Please enter your name", "Raju");
document.write("Welcome "+ person);
Welcome 'Raju'
Comments
Post a Comment