HTML and CSS Reference
In-Depth Information
TABLE 14.2
JavaScript Reserved Words
abstract
as
boolean
break
byte
case
catch
char
class
continue
const
debugger
default
delete
do
double
else
enum
export
extends
false
final
finally
float
for
function
goto
if
implements
import
in
instanceof
int
interface
is
long
namespace
native
new
null
package
private
protected
public
return
short
static
super
switch
synchronized
this
throw
throws
transient
true
try
typeof
use
var
void
volatile
while
with
Not all the reserved words in Table 14.2 are currently used in JavaScript some have been
placed off limits because they might be added to the language in the future.
Here are a couple of additional notes on variable assignment. You don't have to assign a
value to a variable when you declare it. You can declare the variable without an assign-
ment so that it can be used later. For example
var myVariable;
You can also assign variables after they've been declared, as follows:
myVariable = “My value”;
Finally, the right side of an assignment can be an expression, even an expression that
includes another variable:
 
 
Search WWH ::




Custom Search