O'Reilly logo

Beginning JavaScript, 5th Edition by Jeremy McPeak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

BJavaScript Core Reference

This appendix outlines the syntax of all the JavaScript core language functions and objects with their properties and methods. If changes have occurred between versions, they have been noted.

BROWSER REFERENCE

The following table outlines which JavaScript version is in use and in which browser it is used. Note that earlier versions of Internet Explorer implemented Jscript, Microsoft’s version of JavaScript. However, Jscript’s features are relatively the same as JavaScript.

JAVASCRIPT VERSION MOZILLA FIREFOX INTERNET EXPLORER CHROME SAFARI OPERA
1.0 3.0
1.1
1.2
1.3 4.0
1.4
1.5 1.0 5.5, 6, 7, 8 1–10 3-5 6, 7, 8, 9
1.6 1.5
1.7 2.0 28
1.8 3.0 11.5
1.8.1 3.5
1.8.2 3.6
1.8.5 4 9 32 6 11.6

RESERVED WORDS

Various words and symbols are reserved by JavaScript. These words cannot be used as variable names, nor can the symbols be used within them. They are listed in the following table.

abstract boolean break
byte case catch
char class const
continue debugger default
delete do double
else enum export
extends false final
finally float for
function goto if
implements import in
instanceof int interface
let long native
new null package
private protected public
return short static
super switch synchronized
this throw throws
transient true try
typeof var void
volatile while with
- ! ~
% / *
> < =
& ^ |
+ ?

Other Identifiers to Avoid ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required