filmov
tv
JavaScript Tutorial 1 - JavaScript Comments and Variables
Показать описание
JavaScript tutorial to write variables and comments in JavaScript. Variable names can contain letters, digits, underscore (_) and dollar sign ($). The names must start with a letter, underscore or a dollar sign.
Examples
var a = 9;
var employee_name = "john doe";
Comments:-
Single line comments begin with //, everything after until end of line is ignored
//this is a single line comment
Multi line comments begin with /* and end with */. Everything that comes in between is ignored.
/*
This is a multiline comment
*/
Examples
var a = 9;
var employee_name = "john doe";
Comments:-
Single line comments begin with //, everything after until end of line is ignored
//this is a single line comment
Multi line comments begin with /* and end with */. Everything that comes in between is ignored.
/*
This is a multiline comment
*/