+ 1

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 ?

10th Apr 2019, 2:46 AM
Debbie Swatzell
21 odpowiedzi
+ 10
const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [...arr1, 4 , ...arr2];
10th Apr 2019, 6:10 AM
VEDANG
VEDANG - avatar
+ 5
the answer is this [...arr1, 4 , ...arr2]
30th Jun 2019, 8:03 AM
John Philip
John Philip - avatar
+ 3
The answer is 56
5th Aug 2019, 7:35 PM
Aftab Ashraf
Aftab Ashraf - avatar
+ 1
The answer is here.. const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ ... arr1, 4 , ...arr2];
5th Aug 2019, 7:34 PM
Aftab Ashraf
Aftab Ashraf - avatar
+ 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
4th Feb 2020, 3:49 PM
KISHAN KUMAR THAKUR
KISHAN KUMAR  THAKUR - avatar
+ 1
the answer is this [...arr1, 4 , ...arr2]
17th Sep 2021, 4:52 AM
Chandramouli
Chandramouli - avatar
0
what is a result of this code , please. const square = num => num * num; console.log(square(6) + 6);
31st Aug 2019, 2:36 AM
Tonito Dias Sumbelelo
Tonito Dias Sumbelelo - avatar
0
42 is the answer to const square = num => num * num; console.log(square(6) + 6);
21st Sep 2019, 12:25 PM
Timothy Olufemi
Timothy Olufemi - 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]; Answer is arr1 ... 4
31st Mar 2020, 4:24 AM
S.R.Subha Shree
0
arr3 = [...arr1, 4, ...arr2];
1st May 2020, 5:04 PM
boukhalfa bay
boukhalfa bay - avatar
0
const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [...arr1, 4 , ...arr2];
27th Jun 2020, 2:28 PM
juumo
juumo - avatar
0
const ....... = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [...arr1,.... , ...arr2]; ؟؟ help plss
3rd Oct 2020, 12:11 PM
abdjalil djaafari
abdjalil djaafari - avatar
0
const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ . arr1, 4 , ...arr2];
27th Nov 2020, 11:06 PM
Jamila Mousa
Jamila Mousa - avatar
0
const arr1 = [1, 2, 3]; const arr2 = [5, 6, 7, 8]; let arr3 = [ ... arr1, 4 , ...arr2];
2nd Dec 2020, 2:26 AM
Stiffler Bernard Awuah
Stiffler Bernard Awuah - avatar
0
5 6
3rd Dec 2020, 8:05 PM
El Maslohi Hassan
0
I think the answer is 9: I enjoyed over read your post.I got good ideas from this amazing post. I am always searching like this type of blog post. I hope I will see you again https://www.dumpscafe.com/Braindumps-MCD-Level-1.html
11th Dec 2020, 6:48 AM
davidwilly
0
Answer is 56 trust me
17th Dec 2020, 8:42 PM
Turikumana Isaie
Turikumana Isaie - avatar
0
What is the output of this code? const arr = [2, 3, 1, 7]; const res = arr.map(x => x * 3); console.log(res[1]); answer is res[1]=9
16th May 2021, 8:43 AM
Divya Kumari
0
the answer is 9
5th Jun 2022, 4:27 PM
Nuramirah Hasya Mohd Nizam
Nuramirah Hasya Mohd Nizam - avatar
0
42
8th Jul 2022, 3:33 PM
WAJAHAT MASOOD
WAJAHAT MASOOD - avatar