Introduction To Promgramming Functions
JavaScript, also known as ECMAScript is a prototype-based object-oriented scripting language that is dynamic, weakly typed and has first-class functions.
It is also considered a functional programming language like Scheme and OCaml because it has closures and supports higher-order functions.
JavaScript is an implementation of the ECMAScript language standard and is primarily used in the form of client-side JavaScript, implemented as part of a
web browser in order to provide enhanced user interfaces and dynamic websites. This enables programmatic access to computational objects within a host environment.

In mathematics and computer science, an algorithm is an effective method expressed as a finite list of well-defined instructions
for calculating a function. Algorithms are used for calculation, data processing, and automated reasoning.
Starting from an initial state and initial input (perhaps null), the instructions describe a computation that, when executed, will proceed through
a finite number of well-defined successive states, eventually producing "output" and terminating at a final ending state.
The transition from one state to the next is not necessarily deterministic; some algorithms, known as randomized algorithms, incorporate random input.
Conversions and Comparisons
Arithmetic expressions are simple, but watch out for subtle type conversions. The shorthand notations may save you a lot of typing.
Comparison takes two numbers and produces a logical result. Comparisons are usually found controlling if statements or loops.
Logical connectors allow several comparisons to be combined into a single test. Lazy evaluation can improve the efficiency of the
program by reducing the amount of calculation required.