Day 26 of #100daysofjs

JavaScript alert, prompt & confirm

Interaction: alert, prompt and confirm

alert: Used to invoke a mini window with a message alert ("Hello")

prompt: Used to take user input as a string

inp = prompt ("Hi", "No") // no is the optional default value.

confirm: shows a message and waits for the user to press ok and cancel. Returns true for ok and false for cancel.

code