- Javascript Objects
An object is a collection of properties , defined as a key-value pair. Each property has a key and a value. The property key can be a string and the property value can be any valid value. Create an object You can use {} or the new Object(). let object = {} object.name = “Folau”; object.age […]
- Javascript Class
Classes are a template for creating objects. They encapsulate data with code to work on that data. You first need to declare your class and then access it, otherwise code like the following will throw a ReferenceError. /* * Classes are a template for creating objects. They encapsulate data with…
- Javascript Functions
A function is a block of code designed to perform a certain task. A function is run when it’s invoked or called by an action. functions are very important because they are written once and can be executed multiple times. They save you a lot of development time in that you don’t have to repeat […]