WbWizard's JS Book




Blue Line


Lesson 1: Keywords(Reserved)


Today we will discuss and identify a partial list of Keywords, also referred to as Reserved Keywords (Java, JavaScript, and ECMAscript). Keywords are those words used as the name or identifier of a built in object, method, property, or instance in Java or JavaScript (and therefor ECMAscript), with each language adding a few more to the list. Since these words are predefined variables, using them as variable names will cause errors (including crashes) in your scripts.

The following list of Keywords is partial and not up to date, but rather is based upon those Keywords reserved by the WebTv browser, see http://developer.webtv.net for more on JellyScript and the versions of JScript and ECMAscript upon which it is based for more precise
Keyword info.

JavaScript Keywords:

break
case
continue
default
delete
do
else
export
false
for
function
if
import
in
new
null
return
switch
this
true
typeof
var
void
while
with
ECMA Reserved Extensions:
catch
class
const
debugger
enum
extends
finally
super
throw
try

Java Keywords:

abstract
boolean
byte
char
double
final
float
goto
implements
instanceof
int
interface
long
native
package
private
protected
public
short
static
synchronized
thorws
transient

And any basic Identifier in JavaScript:

alert
arguments
Array
blur
boolean
callee
caller
captureEvents
clearInterval
clearTimeout
close
closed
confirm
constructor
Date
defaultStatus
document
escape
eval
find
focus
frames
Function
history
home
Infinity
innerHeight
innerWidth
isFinite
isNaN
java
length
location
locationbar
Math
menubar
moveBy
moveTo
name
NaN
nescape
Number
Object
open
opener
outerHeight
outerWidth
Packages
pageXOffset
pageYOffset
parent
parseFloat
parseInt
personalbar
print
prompt
prototype (hmm, look familiar?)
RegExp
releaseEvents
resizeBy
resizeTo
routeEvent
scroll
scrollbars
scrollBy
scrollTo
self
setInterval
setTimeout
status
statusbar
stop
String
toolbar
top
toString
unescape
unwatch
valueOf
watch
window
WebTv:
sidebar
tvs
Blim




Easy Pad



Blue Line
Lessons by
Jerry aka WebWizard