[Solved] Can someone please help me with this, it keeps saying "unexpected identifier in line 1" but I'm unable to fix it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

[Solved] Can someone please help me with this, it keeps saying "unexpected identifier in line 1" but I'm unable to fix it

https://code.sololearn.com/Wr62iZGJ0tcr/?ref=app

14th Sep 2020, 10:58 PM
Coded Writer ⚔️
Coded Writer ⚔️ - avatar
5 Answers
+ 2
var arr1, arr2, arr; Separate the variables with comma
14th Sep 2020, 11:00 PM
Ruba Kh
Ruba Kh - avatar
+ 3
Remove } sign and added comma in arrays declaration var arr,arr1,arr2;
14th Sep 2020, 11:01 PM
HBhZ_C
HBhZ_C - avatar
+ 3
HBhZ_C There is no curly braces in the code
14th Sep 2020, 11:08 PM
Coded Writer ⚔️
Coded Writer ⚔️ - avatar
+ 2
Line 1 of the JS is missing commas between variable names. It should be like this: var arr1, arr2, arr;
14th Sep 2020, 11:01 PM
Brian
Brian - avatar
+ 1
It works now, thank you all
14th Sep 2020, 11:02 PM
Coded Writer ⚔️
Coded Writer ⚔️ - avatar