Variables and Value in JavaScript

preview_player
Показать описание
What is a Variable?
Variable is an identifier/name that stores value/data (Variables are storage for values.)
{var|let|const} {variableName}[=value]
What is a Value?
A value is a piece of data
most fundamental unit of information in programming language.
It’s smallest unit of information in JS. (‘Baurav’ ,10)

/*
Give some meaningful name(convention)
Should not start with upper case (convention )
Name should follow camel case or underscore (firstName, first_name)
Name should be case-sensitive
Name must begin with a letter or undersore (_) or doller sign($)
Reserved keyword can’t be used like:-( break , if , else, throw)
Can’t use same name for function or other object name
Multiple variables can be declared in same line with coma separated
When you just declared it , the data type will be undefined. */
Рекомендации по теме
join shbcf.ru