alert

"Alert" statement. The alert statement displays a modal alert on the app, that stays there until the user clicks "ok". It requires a single parameter (message) giving the text of the alert message to display. Alert may also optionally take one or more additional parameters that will be converted to strings and then concatenated, allowing you to build complex messages without using a concat() operation.

Format:

alert(message [,part1] [,part2] [,...] )
 

Parameters:

Parameter Type Description
message mixed The message is usually a string, but can be any type that can easily be converted into a string, such as a number.
partN mixed  [Optional]one or more additional parameters may be included that will be concatenated

Examples

if (a == 4) alert("a is 4")
 alert("The item was deleted successfully")
 alert("The item with the name ", item.name , " was deleted!")
 

Screen Shots