About JavaScript

JavaScript is a interpreted programming language. It is a programming language that is characterized as dynamic, weakly typed, prototype-based and multi-paradigm.

Objects

An object is an collection of properties. A property is an association between a name(key) and a value. In the example above the name of the object, how we are identifing it, is comics(1). All of the date we are using is contained in the curly brackets(2). Then we have names for specfic data points in the object(3). The data(3) and its value (5) are seperated by a colon(4). On the other side of the colon is the value of the date(5).

Array

An array is a single variable that is used to store different elements. It is often used when we want to store list of elements and access them by a single variable. In the example above (1) represents the name of the array,list. The array is inside of square brackets [] (2). Each item regradless of the datetype is seperated by commas (3).

For Loop

A For Loop takes 3 expressions, a variable declaration, an expression to be evaluated before each iteration, and an expression to be evaluated at the end of each iteration. It loops through a block of data a number of times, the number can be specfied.