top of page

Java Script

Values

Also

Known as

(Objects)

A "value" or (value) is basically the smallest bit of information that is used in Java Script.

values can be joined using operators (more about them later) to create larger values.

values should be within parenthesis () "" or ''.

A useful application of values is storing them in variables so we can reuse them many times, this is because storing a value adds the value to the computers memory.

Starting with a declaration  const  we next add a variable  firstName  then add an operator  concluding with the value "Sharrefa".

const  firstName  = 'Shareffa';

console.log(firstName);

console.log(firstName);

console.log(firstName);

console should read: Sharreffa

Sharreffa

Sharreffa

Basic set of Values within parenthesis (), (country), (continent), (population), ( 1 ), (19) or (insert number here).

bottom of page