Fill in blanks to make the variable arr3 look like the following: [1, 2, 3, 4, 5, 6, 7, 8]. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Fill in blanks to make the variable arr3 look like the following: [1, 2, 3, 4, 5, 6, 7, 8].

Fill in blanks to make the variable arr3 look like the following: [1, 2, 3, 4, 5, 6, 7, 8]. const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ ... arr1, , ...arr2];

5th Dec 2020, 2:49 PM
julie Metz
julie Metz - avatar
6 Answers
+ 5
Don't give homework here
5th Dec 2020, 3:24 PM
Sâñtôsh
Sâñtôsh - avatar
+ 1
const arr1 = [ 1, 2, 3 ]; const arr2 = [ 5, 6, 7, 8 ]; let arr3 = [ ... arr1, 4, ... arr2 ];
26th Feb 2021, 7:17 AM
Abrorbek Pulatov
Abrorbek Pulatov - avatar
+ 1
const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ ... arr1, 4 , ...arr2];
5th Apr 2022, 1:58 PM
Solahudeen Abdulrahmon
Solahudeen Abdulrahmon - avatar
0
const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ ... arr1, 4 , ...arr2];
4th Jan 2023, 6:14 PM
Ibrahim Alshibly
Ibrahim Alshibly - avatar
0
Fill in blanks to make the variable arr3 look like the following: [1, 2, 3, 4, 5, 6, 7, 8]. const = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ arr1, , ...arr2];
10th Mar 2023, 7:52 PM
Krishn Kant Sharma
Krishn Kant Sharma - avatar
- 1
26th Feb 2021, 7:25 AM
Abrorbek Pulatov
Abrorbek Pulatov - avatar