다음을 통해 공유


Microsoft JScript Features - ECMA (Windows Scripting - JScript)

 

The following table lists JScript features compliant with ECMA standards.

Features

Category

Feature/Keyword

Array Handling

Array

join

length

reverse

sort

Assignments

Assign (=)

Compound Assign (OP=)

Booleans

Boolean

Comments

/*...*/ or //

Constants/Literals

NaN

null

true, false

Infinity

undefined

Control flow

Break

continue

for

for...in

if...else

return

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

Function Creation

Function

arguments

length

Global Methods

Global

escape

unescape

eval

isFinite

isNaN

parseInt

parseFloat

JSON (JavaScript Object Notation)

parse

stringify

toJSON

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, prototype, instanceof, 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 (++)

Objects

Array

Boolean

Date

Function

Global

JSON

Math

Number

Object

String

Strings

String

charAt, charCodeAt, fromCharCode

indexOf, lastIndexOf

split

toLowerCase, toUpperCase

length

Change History

Date

History

Reason

August 2008

Added JSON information.

Information enhancement.