+ 2
[Solved] Can someone please help me with this, it keeps saying "unexpected identifier in line 1" but I'm unable to fix it
5 Answers
+ 2
var arr1, arr2, arr;
Separate the variables with comma
+ 3
Remove } sign and added comma in arrays declaration
var arr,arr1,arr2;
+ 3
HBhZ_C There is no curly braces in the code
+ 2
Line 1 of the JS is missing commas between variable names. It should be like this:
var arr1, arr2, arr;
+ 1
It works now, thank you all