var cars = ;
var cars = new array();
This method is used to merge two or more arrays. This doesn’t modify the existing array, but returns a new array.
const arr1 = ['Lamborghini', 'Audi', 'Mercedes-Benz'];
const arr2 = ['Ford', 'Toyota'];
const cars = arr1.concat(arr2);console.log(cars);
//output: ['Lamborghini', 'Audi', 'Mercedes-Benz', 'Ford', 'Toyota']
This method creates a new array with all…
In this article, I am going to explain these differences with the examples.
In ES5, there is a one way of defining variables using var keyword. But ES6 has introduced two more ways of defining variables using keywords let and const. However, let and const use block…
React Native has become the most popular cross-platform mobile application development framework which is developed and maintained by Facebook.
In this article, I am going to divide this topic to three main sections such as,
Let’s dig into the topic.
React Native is a cross-platform mobile application development framework which can be used to develop mobile apps for Android as well as iOS, using React with native technologies.