javascript create alert message code example Example 1: simple alert program in javascript alert("this is the alert") Example 2: how to make alert in javascript alert("Alert")