Let's learn about some

JavaScript

key concepts!

Functions!

Function:

(fuhngk-shuh n) n.

"Functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure—a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it."

Arrays!

Array:

(uh-rey) n.

"The JavaScript Array object is a global object that is used in the construction of arrays; which are high-level, list-like objects."

Objects!

Object:

(ob-jikt) n.

"JavaScript is designed on a simple object-based paradigm. An object is a collection of properties, and a property is an association between a name (or key) and a value."

Want some extra info?

Go check out MDN web docs!

Still want more info?

Go check out W3Schools!

Want even more info?

Go check out codeburst.io!

Function:

A function is a procedure that can be called by code external or internal to the function. A function is made up of a sequence of statements called the function body. Values, whether they be numbers or objects, can be passed through a function, and the function is able to return a value. Functions can return values as well. In order to return a value other than what the functions default value is, the function needs to include a return statement that instructs the value to return. If a function doesn’t have the return statement, the default value is returned instead.

Array:

An array is a variable that is used to store or hold different types of elements. It is used most often when you are trying to store a list of elements and access them by using only one single variable. Unlike other coding languages where an array is a reference to the multiple variable, in JavaScript an array is one single variable that can store multiple elements. When working with an array, you need to declare and then initialize it. Declaring an array gives name to the variable and initializing an array happens when you give the variable a value.

Object:

An object is an entity that can work by itself and includes properties and type. It is made up of properties, and a property is an association between a variable name and a value. A property's value can be many things, including a function! When the value is a function, the property is known as a method. While there are many objects that are already predetermined or predefined in a browser, you can also make and define your own objects. Objects in coding can very easily be compared to objects in real life.