JavaScript Editor Ajax toolkit     Ajax website 



Main Page

JScript incorporates almost all of the features of the ECMAScript Edition 3 Language Specification. In addition, JScript is being developed in conjunction with ECMAScript Edition 4 and incorporates many of the proposed features of that language as well. The tables below list the features of ECMAScript 3 and the proposed ECMAScript 4 features that JScript supports.

Features supported by JScript

Category ECMAScript 3 Feature/Keyword

Array Handling

Arrayconcat,join, length, reverse, slice, sort

Assignments

Assign (=),Addition Assignment (+=),Bitwise AND Assignment (&=),Bitwise OR Assignment (|=),Bitwise XOR Assignment (^=),Division Assignment (/=),Left Shift Assignment (<<=),Modulus Assignment (%=),Multiplication Assignment (*=),Right Shift Assignment (>>=),Subtraction Assignment (-=),Unsigned Right Shift Assignment (>>>=)

Booleans

Boolean, true, false

Comments

/*...*/ or //

Constants/Literals

NaNВ null,InfinityВ undefined

Control flow

breakВ continueВ do...whileВ forВ for...inВ if...elseВ LabeledВ returnВ switchВ while

Dates and Time

DateВ getDate, getDay, getFullYear, getHours, getMilliseconds, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, getUTCDate, getUTCDay, getUTCFullYear, getUTCHours, getUTCMilliseconds, getUTCMinutes, getUTCMonth, getUTCSeconds, setDate, setFullYear, setHours, setMilliseconds, setMinutes, setMonth, setSeconds, setTime, setYear, setUTCDate, setUTCFullYear, setUTCHours, setUTCMilliseconds, setUTCMinutes, setUTCMonth, setUTCSeconds, toGMTString, toLocaleString, toUTCString, parse, UTC

Declarations

FunctionВ newВ thisВ varВ with

Error Handling

Error, description, number, throw, try...catch

Function Creation

caller, FunctionВ arguments, length

Global Methods

GlobalВ escape, unescapeВ evalВ isFinite, isNaNВ parseInt, parseFloat

Math

MathВ abs, acos, asin, atan, atan2, ceil, cos, exp, floor, log, max, min, pow, random, round, sin, sqrt, tan, E, LN2, LN10, LOG2E, LOG10E, PI, SQRT1_2, SQRT2

Numbers

NumberВ MAX_VALUE, MIN_VALUEВ NaNВ NEGATIVE_INFINITY, POSITIVE_INFINITY

Object Creation

ObjectВ newВ constructor, instanceof, prototype, toString, valueOf

Operators

Addition (+), Subtraction (-)В Modulus arithmetic (%)В Multiplication (*), Division (/)В Negation (-)В Equality (==), Inequality (!=)В Less Than (<), Less Than or Equal To (<=)В Greater Than (>)В Greater Than or Equal To (>=)В Logical And(&&), Or (||), Not (!)В Bitwise And (&), Or (|), Not (~), Xor (^)В Bitwise Left Shift (<<), Shift Right (>>)В Unsigned Shift Right (>>>)В Conditional (?:)В Comma (, )В delete, typeof, voidВ Decrement ( -- ), Increment (++),Strict Equality (===), Strict Inequality (!==)

Objects

ArrayВ BooleanВ DateВ FunctionВ GlobalВ MathВ NumberВ ObjectВ RegExpВ Regular ExpressionВ String

Regular Expressions and Pattern Matching

RegExpВ index, input, lastIndex, $1...$9, source, compile, exec, testВ Regular Expression Syntax

Strings

StringВ charAt, charCodeAt, fromCharCodeВ indexOf, lastIndexOfВ splitВ toLowerCase, toUpperCaseВ lengthconcat, sliceВ match, replace, searchВ anchor, big, blink, bold, fixed, fontcolor, fontsize, italics, link, small, strike, sub, sup

Category Proposed ECMAScript 4 Feature/Keyword

Class-Based Objects

class, extends, implements, interface,function get, function set, static,public, private, protected, internal,abstract, final,hide, override,static

Declarations

const

Enumerations

enum

See Also



JavaScript Editor Ajax toolkit     Ajax website


©