ES6 | SoloLearn: Learn to code for FREE!

+4

ES6

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]; what are the ?

4/10/2019 2:46:45 AM

Debbie Swatzell

13 Answers

New Answer

+11

const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [...arr1, 4 , ...arr2];

+3

the answer is this [...arr1, 4 , ...arr2]

+1

The answer is here.. const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ ... arr1, 4 , ...arr2];

+1

The answer is 56

+1

What is the output of the following code? let nums = [3, 4, 5]; let all = [1, 2, ...nums, 6]; console.log(all[3]); ------------------------- 4 is the answer

0

what is a result of this code , please. const square = num => num * num; console.log(square(6) + 6);

0

42 is the answer to const square = num => num * num; console.log(square(6) + 6);

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]; Answer is arr1 ... 4

0

arr3 = [...arr1, 4, ...arr2];

0

const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [...arr1, 4 , ...arr2];

0

const ....... = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [...arr1,.... , ...arr2]; ؟؟ help plss

0

const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ . arr1, 4 , ...arr2];

-5

llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllIllllllllllllllllllllllllllllllllllllllllllllllllllll