=> The push() method adds a new element to an array (at the end)
=> The push() method returns the new array length

Example:

// Consider an array of Fruits
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi"); // Adds a new element ("Kiwi") to fruits

Example:

var fruits = ["Banana", "Orange", "Apple", "Mango"];
var x = fruits.push("Kiwi"); // the value of x is 5

--

--

--

--

Build Password Generator using React JS. In the below Video we will be building a password generator using React JS. It will be able to generate a strong password by generating a random sequence of uppercase letters , lowercase letters, numbers and special Characters.

We will also be working on implementing notifications to be shown when the password gets copied. And we will be setting some error notifications to be shown when someone hits generate password without selecting any of the options provided.

--

--