+ 5

What is the output of these?

let arr1=[1,2,3,4]; let ['1','2']=arr1; let arr2=[1,2,]; let ['5','4','3']=arr2; console. log('2'); console. log ('3');

14th Jul 2018, 1:57 PM
Karthick
Karthick - avatar
2 Antworten
+ 9
Head to the code playground (web -> JS) in order to run your code and see what it outputs. If you want explanation about the working of your code, feel free to ask.
14th Jul 2018, 2:33 PM
Dev
Dev - avatar
+ 1
Karthick You should try submitting it as a quiz, not posting it on the FAQ section
14th Jul 2018, 3:00 PM
Dlite
Dlite - avatar