JavaScript 101 – Lesson 06 – Digging into Arrays

JS101

Welcome back in JavaScript 101 series. In this lesson I’m going to talk about arrays.

The Array is a very important concept in any programming language, same here for JavaScript! So, I decided to write a full lesson on this data type.

The array is a built in data type in JavaScript, like String, Boolean, etc. The purpose of the array is to store a collection of values or sequence of values, obviously similar type values. An array can have any type of values, we can also mix them in a single array if we want. But in general, we use the same type of values in a single array.
Continue reading

JavaScript 101 – Lesson 05 – Creating Our Own Objects

JS101

The purpose of using objects is to logically organize complex data in our program. In general, Object Oriented Programming allows us to work with complex data in a simple and elegant way.

JavaScript data types begin with an uppercase letter. These are also called built in data types. When we see any function begins with an uppercase letter – we can understand that this is a data type. This type of casing is called ‘Pascal Casing’ – it’s all like camel casing except first letter of first word also begins with a capital letter. Like –
Continue reading