Keywords
Like every programming/scripting language, JavaScript has certain "keywords" reserved for its own use -- and will no doubt add to list as the language develops. Keywords include such "words" as var (for variable), as well as names of objects, properties, and methods.
What's important to know about keywords is that you must not use them as names for your own variables. This will generally not be hard to avoid if you give your variables descriptive names according to the specific roles they play in your scripts (which is good practice anyway). Trying to locate and memorize the names of all the keywords is a thankless task, and not really necessary -- you'll get to know them as you work with JavaScript. While you are learning, you can use the following list of currently reserved keywords to refer to if necessary.
abstract
boolean
break
byte
case
catch
char
class
const
continue
default
do
double
else
|
extends
false
final
finally
float
for
function
goto
if
implements
import
in
instanceof
|
int
interface
long
native
new
null
package
private
protected
public
return
short
static
|
super
switch
synchronized
this
throw
throws
transient
true
try
var
void
while
with
|
|