- 1
javascript
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];
19 Respuestas
+ 3
Arr1 is defined as 1,2,3 and arr2 is defined is 5,6,7,8
It’s supposed to read 1,2,3,4 and so on.
Starting the clause you have to write...and the arr sequence in this case arr1. The next section is easy as it’s just the number 4 because if you look at it 4 is still missing between arr1 and arr2.
+ 3
answer is
arr1
...
4
+ 1
answer is 4
0
let a = [1,2];
let b = [3,4];
let c = [...a, ...b];
console.log(c)
//outputs [1,2,3,4]
There would be not third param in c
0
Answer is arr1, '...', 4
0
0
Ok it's 4 but what's before arr1 pls help me
0
const
arr1
= [1, 2, 3];
const arr2 = [5, 6, 7, 8];
let arr3 = [
...
arr1,
4
, ...arr2];
0
the Answer is arr1, '...', 4
0
...arr1,4
0
arr1 ... 4
0
please help me
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,
4
, ...arr2]
0
- 1
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, 4, ...arr2];
- 1
const arr1 = [1, 2, 3];
const arr2 = [5, 6, 7, 8];
let arr3 = [...arr1, 4, ...arr2];
- 1
answer is :
arr1
...arr1
4
- 4
Answer is
const arr1 = [1, 2, 3];
const arr2 = [5, 6, 7, 8];
let arr3 = [...arr1, 4, ...arr2];
- 4
What [... arr1, ...arr2];
- 5
answer is arr1 [] and 4