.map()
returns a new array with the same number of items as the original array, but with each item transformed by a callback function..map()
to loop through an array and display each value in JSX in React.const arr = [1, 2, 3];
const arr1 = [4, 5, 6];
Output: [1, 2, 3, 4]const helloWorld = {...hello,...world}
I don’t know. I’m tired and going to bed.