You are on page 1of 1

JavaScript Guidelines

Some other important things to know when scripting with JavaScript.


JavaScript is Case Sensitive
A function named "myfunction" is not the same as "myFunction" and a variable named "myar"
is not the same as "myvar".
JavaScript is case sensitive ! therefore watch your capitali"ation closely when you create or call
variables# ob$ects and functions.
%hite Space
JavaScript ignores e&tra spaces. 'ou can add white space to your script to make it more
readable. (he following lines are e)uivalent*
name="Hege";
name = "Hege";
+reak up a Code ,ine
'ou can break up a code line within a text string with a backslash. (he e&ample below will be
displayed properly*
document.write("Hello \
World!");
-owever# you cannot break up a code line like this*
document.write \
("Hello World!");

You might also like