JavaScript Tutorial 1 - JavaScript Comments and Variables

preview_player
Показать описание
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
*/
Рекомендации по теме