
| Operator | Description |
|---|---|
| + | add |
| - | subtract |
| * | multiply |
| / | divide |
| % | modulus |
| ++ | increment |
| -- | decrement |
| Operator | Example | Equal to |
|---|---|---|
| = | X = Y | X = Y |
| += | X+ = Y | X = X + Y |
| -= | X- = Y | X = X - Y |
| *= | X* = Y | X = X * Y |
| /= | X/ = Y | X = X / Y |
| %= | X% = Y | X = X%Y |
| Operator | Description | Example |
|---|---|---|
| == | is equal to | 5 == 8 returns false |
| != | is not equal to | 5 != 8 returns true |
| > | is greater than | 5 > 8 returns false |
| < | is less than | 5 < 8 returns true |
| >= | is greater than or equal to | 5 >= 8 returns false |
| <= | is less than or equal to | 5 <= 8 returns true |
| Operator | Description | |
|---|---|---|
| && | || | ! |
| and | or | not |
| Properties | Explanation |
|---|---|
| length | returns number of characters in a string |
| anchor() | returns a string as an anchor |
| big() | returns a string in big text |
| blink() | returns a string blinking |
| bold() | returns a string in bold |
| charAt() | returns the character at a position |
| charCodeAt() | returns the unicode of a character at a position |
| concat() | returns two concatenated strings |
| fixed() | returns a string as teletype |
| fontcolor() | returns a string in a color |
| fontsize() | returns a string in a size |
| fromCharCode() | returns the character value of a unicode |
| indexOf() | returns the position of a character or string, -1 if not found |
| italics() | returns a string in italics |
| lastIndexOf() | returns the position of the first occurance of a character or string starts from the right, -1 if not found |
| link() | returns a string as a link |
| match() | returns the string if found in a string, null if not found |
| replace() | replaces specified characters |
| search() | returns integer if string found, -1 if not |
| slice() | returns a string containing a specified character index |
| small() | returns a string in small text |
| split() | Splits a string into an array of strings |
| strike() | returns a string as strikethrough text |
| sub() | returns a string as subscript text |
| substr() | returns the specified characters |
| sup() | returns a string as superscript text |
| toLowerCase() | returns a string as lowercase |
| toUpperCase() | returns a string as uppercase |
| Method | Explanation |
|---|---|
| length | Returns number of elements in the Array |
| concat() | returns an array concatenated from two arrays |
| join() | returns a string of all array elements concatenated |
| reverse() | returns the array reversed |
| slice() | returns the specified part of an array |
| sort() | returns a sorted array |
| Method | Explanation |
|---|---|
| Date() | Returns a date object |
| getDate() | Returns the number of the day in the month |
| getDay() | returns 0 = Sunday... 7 = Saturday |
| getMonth() | Returns 0 = Jan... 11 = Dec |
| getFullYear() | Returns a 4 digit year |
| getYear() | Returns two digit year |
| getHours() | Returns 0 thru 23 |
| getMinutes() | Returns 0 thru 59 |
| getSeconds() | Returns 0 thru 59 |
| getMilliseconds() | Returns 0 thru 999 |
| getTime() | Returns number of milliseconds since midnight |
| getTimezoneOffset() | Returns time zone offset from GMT |
| getUTCDate() | Returns date in UTC time |
| getUTCFullYear() | Returns 4 digit year of UTC |
| getUTCHours() | Returns hour in UTC |
| getUTCMinutes() | Returns minutes in UTC |
| getUTCSeconds() | Returns seconds in UTC |
| getUTCMilliseconds() | Returns milliseconds in UTC |
| parse() | Returns number of milliseconds since 01/01/1970 00:00:00 |
| setDate() | Sets the date of the month (1-31) |
| setFullYear() | Sets the year |
| setHours() | Sets the hours |
| setMilliseconds() | Sets the milliseconds |
| setMinutes | Sets the minutes |
| setMonth() | Sets the month |
| setSeconds() | Sets the seconds |
| setTime() | Sets the milliseconds after 01/01/1970 00:00:00 |
| setYear() | Sets the year |
| setUTCDate() | |
| setUTCDay() | |
| setUTCMonth() | |
| setUTCFullYear() | |
| setUTCHour() | |
| setUTCMinutes | |
| setUTCSeconds() | |
| setUTCMilliseconds() | |
| toGMTString() | converts the date object to a string in GMT |
| toLocaleString() | converts the date object to a string in local time zone |
| toString() | Convertsa date to a string |
| Property | Explanation |
|---|---|
| E | Returns the base of a natural logarithm |
| LN2 | Returns the natural logarithm of 2 |
| LN10 | Returns the natual logarithm of 10 |
| LOG2E | Returns the base-2 logarithm of E |
| LOG10E | Returns the base-10 logarithm of E |
| PI | Returns PI |
| SQRT1_2 | Returns 1 divided by the square root of 2 |
| SQRT2 | Returns the square root of 2 |
| Method | Explanation |
|---|---|
| abs(X) | Returns the absolute value |
| acos(X) | Returns the arccosine |
| asin(X) | Returns the arcsine |
| atan(X> | Returns the arctangent |
| atan2(Y,X) | Returns the angle from the X axis to a point |
| ceil(X) | Returns the nearest integer >= X |
| cos(X) | Returns the cosine |
| exp(X) | Returns the value of E to the X power |
| floor(X) | Returns the nearest integer <= X |
| log(X) | Returns the natural log of X |
| max(X,Y) | Returns the higher number of X and Y |
| min(X,Y) | Returns the lower number of X and Y |
| pow(X,Y) | Returns the value of X to the Y power |
| random() | Returns a random number between 0 and 1 |
| random() * (n) | Returns a random number between 0 and (n - 1) |
| round(X) | Rounds X to the nearest integer |
| sin(X) | Returns sine of X |
| sqrt(X) | Returns the square root of X |
| tan(X) | Returns the tangent of X |

|
|
|