var x, y, z; //declaration x = 10; //Assignment y = x; z = x/y; //operator operation
- Any variable which is declared must be with the keywords var, let, and const.
- An equal sign represents that it has been assigned a value.
- Always use the precise keyword as it is defined already.
- We cannot define VAR or Const or LEt like this as it will throw an error and simply won't interpret it to its default keyword.
- We have upper camel case or otherwise called pascal case
FirstName, LastName, MasterCard
- The lower camel case tends to start with a lowercase letter and the second word starts with uppercase.
firstName, lastName, masterCard
- Strings can be written within both double and single quotes.
- It uses an assignment operator(=) to assign values to the variable.
Mon, 09/13/2021 - 08:39