simple JavaScript program including alerts, prompts, events, and user input code example
Example 1: js prompt
var answer = prompt('What is your name?','Joe Blogg');
Example 2: javascript alert
alert("string");
var answer = prompt('What is your name?','Joe Blogg');
alert("string");