This document is a section of the web browser standards support document. It includes detailed information about ECMAScript support in major web browsers.
ECMAScript is a language used to access and work with the DOM. It was developed as a standardized base for JavaScript and JScript.
These language constructs are used to control the flow of the program and compare and manipulate information.
Feature | IE 8 |
---|---|
Types | |
Undefined | Y |
Null | Y |
Boolean | Y |
String | Y |
Number | Y |
Object | Y |
Basic expressions | |
this | Y |
new | Y |
Postfix ++ | Y |
Postfix -- | Y |
, | ? |
Unary expressions | |
delete | Y |
void | Y |
typeof | Y |
Prefix ++ | Y |
Prefix -- | Y |
+ | Y |
- | Y |
~ | Y |
! | Y |
Math expressions | |
+ | Y |
- | Y |
* | Y |
/ | Y |
% | Y |
Relational expressions | |
== | Y |
!= | Y |
=== | Y |
!== | Y |
< | Y |
> | Y |
<= | Y |
>= | Y |
instanceof | Y |
in | Y |
Binary expressions | |
& | Y |
^ | Y |
| | Y |
&& | Y |
|| | Y |
<< | Y |
>> | Y |
>>> | Y |
Assignment expressions | |
= | Y |
*= | Y |
/= | Y |
%= | Y |
+= | Y |
-= | Y |
<<= | Y |
>>= | Y |
>>>= | Y |
&= | Y |
^= | Y |
|= | Y |
Statements | |
Exp ? Exp : Exp | Y |
var | Y |
function | Y |
if | Y |
if ... else | Y |
do ... while | Y |
while | Y |
for | Y |
for in | ? |
continue | Y |
break | Y |
return | Y |
with | Y |
switch | Y |
throw | Y |
try | Y |
catch | Y |
finally | Y |
Objects are groups of related data and methods. The following objects are built into the ECMAScript language.
Feature | IE 8 |
---|---|
Global | |
(General) | Y |
NaN | Y |
Infinity | Y |
undefined | Y |
eval() | Y |
parseInt() | Y |
parseFloat() | Y |
isNaN() | Y |
isFinite() | Y |
decodeURI() | Y |
decodeURIComponent() | Y |
encodeURI() | Y |
encodeURIComponent() | Y |
Object | |
(General) | Y |
constructor | Y |
toString() | Y |
toLocaleString() | Y |
valueOf() | Y |
hasOwnProperty() | Y |
isPrototypeOf() | Y |
prototypeIsEnumerable() | Y |
Function | |
(General) | Y |
prototype | Y |
constructor | Y |
toString() | Y |
apply() | Y |
call() | Y |
length | Y |
Array | |
(General) | Y |
prototype | Y |
constructor | Y |
toString() | Y |
toLocaleString() | Y |
concat() | Y |
join() | Y |
pop() | Y |
push() | Y |
reverse() | Y |
shift() | Y |
slice() | Y |
sort() | Y |
splice() | Y |
unshift() | Y |
length | Y |
String | |
(General) | Y |
prototype | Y |
fromCharCode() | Y |
constructor() | Y |
toString() | Y |
valueOf() | Y |
charAt() | Y |
charCodeAt() | Y |
concat() | Y |
indexOf() | Y |
lastIndexOf() | Y |
localeCompare() | Y |
match() | Y |
replace() | Y |
search() | Y |
slice() | Y |
split() | ? |
substring() | Y |
toLowerCase() | Y |
toLocaleLowerCase() | Y |
toUpperCase() | Y |
toLocaleUpperCase() | Y |
length | Y |
Boolean | |
(General) | Y |
prototype | Y |
constructor | Y |
toString() | Y |
valueOf() | Y |
Number | |
(General) | Y |
prototype | Y |
MAX_VALUE | Y |
MIN_VALUE | Y |
NaN | Y |
NEGATIVE_INFINITY | Y |
POSITIVE_INFINITY | Y |
constructor | Y |
toString() | Y |
toLocaleString() | Y |
valueOf() | Y |
toFixed() | Y |
toExponential() | Y |
toPrecision() | Y |
Math | |
(General) | Y |
E | Y |
LN10 | Y |
LN2 | Y |
LOG2E | Y |
LOG10E | Y |
PI | Y |
SQRT1_2 | Y |
SQRT2 | Y |
abs() | Y |
acos() | Y |
asin() | Y |
atan() | Y |
atan2() | Y |
ceil() | Y |
cos() | Y |
exp() | Y |
floor() | Y |
log() | Y |
max() | Y |
min() | Y |
pow() | Y |
random() | Y |
round() | Y |
sin() | Y |
sqrt() | Y |
tan() | Y |
Date | |
(General) | Y |
prototype | Y |
constructor | Y |
toString() | Y |
toDateString() | Y |
toTimeString() | Y |
toLocaleString() | Y |
toLocaleDateString() | Y |
toLocaleTimeString() | Y |
valueOf() | Y |
getTime() | Y |
getFullYear() | Y |
getUTCFullYear() | Y |
getMonth() | Y |
getUTCMonth() | Y |
getDate() | Y |
getUTCDate() | Y |
getDay() | Y |
getUTCDay() | Y |
getHours() | Y |
getUTCHours() | Y |
getMinutes() | Y |
getUTCMinutes() | Y |
getSeconds() | Y |
getUTCSeconds() | Y |
getMilliseconds() | Y |
getUTCMilliseconds() | Y |
getTimezoneOffset() | Y |
setTime() | Y |
setMilliseconds() | Y |
setUTCMilliseconds() | Y |
setSeconds() | Y |
setUTCSeconds() | Y |
setMinutes() | Y |
setUTCMinutes() | Y |
setHours() | Y |
setUTCHours() | Y |
setDate() | Y |
setUTCDate() | Y |
setMonth() | Y |
setUTCMonth() | Y |
setFullYear() | Y |
setUTCFullYear() | Y |
toUTCString() | Y |
RegExp | |
(General) | Y |
prototype | Y |
constructor | Y |
exec() | Y |
test() | Y |
toString() | Y |
source | Y |
global | Y |
ignoreCase | Y |
multiline | Y |
lastIndex | Y |
Error | |
(General) | Y |
prototype | Y |
constructor | Y |
name | Y |
message | Y |
toString() | Y |