alert box in js code example Example 1: javascript alert alert(varible); Example 2: how to alert in javascript alert("Message")