Contents

Global Functions & Variables Arrays

Script Comments

Add comments to your code to help you remember and understand in the future. Comments are ignored.


// ABC 123
/*
ABC 123
*/

Example:


//The start of the code
var C=1; //C is a counter used to keep track of how many times a button has been clicked.
/*
This app was created by Jane Smith
June 2014
Happy Software Corp.
*/

This is what would be executed when the code is run.


var C=1;

Global Functions & Variables Arrays