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 ...
Get Beginning JavaScript, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.