Can you debug this code plz?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
10th Aug 2018, 7:16 PM
Sina
Sina - avatar
4 Answers
+ 3
Just compare my code to your code and it should make sense. Let me know if you have questions and I'll explain to the best of my ability. https://code.sololearn.com/WC5h49hwHn4y/#js function a(names){ for(var i = 0; i<names.length;i++){ names[i] = names[i].toUpperCase() if(i == names.length-1){ document.write(names[i]); } else { document.write(names[i] + ", "); } } } function b(){ var nameArr = ["Sina" , "Navid" , "Amir"]; a(nameArr); } b();
10th Aug 2018, 7:35 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
Wow 😮😮😮😮 very interesting code
11th Aug 2018, 8:02 AM
Sina
Sina - avatar
+ 1
Thanks so much
11th Aug 2018, 8:02 AM
Sina
Sina - avatar
+ 1
☺☺
11th Aug 2018, 8:02 AM
Sina
Sina - avatar