js expressions code example

Example 1: javascript expressions

An expression is any valid set of literals, variables, operators, and 
expressions that evaluates to a single value. The value may be a number, 
a string, or a logical value. Conceptually, there are two types of 
expressions: those that assign a value to a variable, and those that 
simply have a value.

Example 2: javascript expression

// EXPRESSION: Code that produces a value
// example(s):
3 + 4
1991
true && false && false

// STATEMENT: Code that performs actions (generally something that ends in ";"
// example:
const str = `String assigned to str`;