Alert
Set a variable and use it to alert
JavaScript
// This is a comment since it is followed by two slashes
// Declare the VARIABLE "x"
var x;
// Set "x" to the VALUE "Hello"
x = "Hello";
// Use a FUNCTION
alert( x );
// This is a comment since it is followed by two slashes
// Declare the VARIABLE "x"
var x;
// Set "x" to the VALUE "Hello"
x = "Hello";
// Use a FUNCTION
alert( x );