alert using javascript code example Example 1: javascript alert alert(varible); Example 2: how to make alert in javascript alert("Alert")