Welcome to part-2 of the series. Before moving to Array, we will look a bit more on String. We will first look into String concatenation. Here, we have the old way which is used with the + operator and the new way, which uses back-ticks.
Now, we will look into some string methods. All of them are explanatory with comment giving what it do. You can find details about all available string methods from this awesome article on mdn.
We have methods to add elements to an array like push and unshift. Also, we have pop and shift to remove elements from the array. All of them are described in the comment after it.
We will check some more array methods. You can find all the available array methods in this mdn article.
More array methods
There are mainly tow ways to access values of object- dot notation and bracket notation.
There are two important properties in Object and are used to get all the keys or values from the Object. Both returns them as array. Arrays are very easy to iterate and we will see it when we will learn about loops.
Also, notice that i am using the browser console, because jsbin console gives [Object object] also with object and it is sometime distracting.
This completes part-2 of the series.
You can find the jsbins used in this part below.