– they are what comprise of any data that can be manipulated by a computer program.
A digit (e.g. 1) or A letter (e.g. Z) or a
string (e.g. Sam Smith).
B.) Numbers – This are arithmetic values used in
including their decimals. For example: var x = 2.16; // With decimal
var y = 18; // without decimal
string refers to any characters written inside quotes.
var y = “Sam Smith”;
Values – They are used represent
E.) Reserve words -This are words
Boolean, catch, break.
variable to a number.eg
var z = “5”;
var y = + z;
type Conversion – this is
converting it to the right one. E.g. 10 + null // returns
10 because null is converted to 0. –
var v = 11;
var z = u + v;
expression is any valid set of variables, operators, and expressions that
evaluates to a single value. E.g.
x=8. The expression assigns X to the
E.g. float, Boolean, double.