when was alert add in javascript code example Example 1: javascript alert alert("string"); Example 2: alert jquery alert("Hello! I am an alert box!!");