how to push a string into an array code example
Example 1: pushing to an array
array = ["hello"]
array.push("world");
console.log(array);
//output =>
["hello", "world"]
Example 2: how to push string into array in javascript
var arr = ["Hi","Hello","Bonjour"];
arr.push("Hola");
console.log(arr);
Example 3: add value to array javascript
var fruits = ["222", "vvvv", "eee", "eeee"];
fruits.push("Kiwi");