0
Hi peeps someone should help me out on this I want to make the following to look like this [1, 2, 3, 4, 5, 6, 7, 8]
Const arr1 = [1, 2, 3] Const arr2 = [5, 6, 7, 8] let arr3 = [___ arr1, -,... arr2] Fill the following blanks
7 Réponses
+ 3
Francis Chukwudi what ??? Did you noticed that three people here took out time to answer your question and you didn't even answered back saying if the answer was correct or "thank you" or so but instead you asked two other questions that have nothing to do with your original question .
+ 2
let arr3=[...arr1,...arr2] Francis Chukwudi
+ 1
There are tow methods to do that:
1- Using concat method:
let arr3 = arr1.concat(arr2)
2- Using spread method:
let arr3 = [...arr1, ...arr2]
0
const arr = [1,2,3,4,]
const arr2 =[5,6,7,8]
var r = arr + arr2
console.log(r)
0
Yea thanks
0
I am grategul
- 1
How to complete the snails in the well project and words project