JavaScript

7x puncte

categorie: Informatica

nota: 10.00

nivel: Facultate

JavaScript is a case-sensitive language. This means that language keywords, variables, function names, and any other identifiers must always be typed with a consistent capitalization of letters. The "while" keyword, for example, must be typed "while", and not "While" or "WHILE". Similarly, online, Online, OnLine, and ONLINE are 4 distinct variable names.

There may appear confusions[...]
DOWNLOAD REFERAT

Preview referat: JavaScript

JavaScript is a case-sensitive language. This means that language keywords, variables, function names, and any other identifiers must always be typed with a consistent capitalization of letters. The "while" keyword, for example, must be typed "while", and not "While" or "WHILE". Similarly, online, Online, OnLine, and ONLINE are 4 distinct variable names.

There may appear confusions because HTML is not case-sensitive. In particular, names of event handlers (pieces of JavaScript code used as the value of HTML attributes) are often typed in mixed-case, for example: onClick or OnClick, are the same think in HTML, but must be all lowercase when referenced from JavaScript (onclick).
JavaScript ignores spaces, tabs, and new lines that appear between the elements (tokens) in the programs, except those spaces that are part of string constants.

Because of this, spaces, tabs, and new lines can be used freely in a program (except in strings and tokens) to format and indent the code of the programs in order to make the code easier to read and understand.
Optional Semicolons: Simple statements in JavaScript are generally followed by a semicolon character (";") in order to separate them from the following statement. However, in JavaScript it is possible to omit this semicolon if the statements are each placed on a separate line. For example, the following code could be written without semicolons:
a = 3;
b = 4;
DOWNLOAD REFERAT
« mai multe referate din Informatica

CAUTA REFERAT


TRIMITE REFERAT CERE REFERAT
Referatele si lucrarile oferite de E-referate.ro au scop educativ si orientativ pentru cercetare academica.