+ 1
Can you debug this code plz??
4 Respostas
+ 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();
+ 1
Wow 😮😮😮😮 very interesting code
+ 1
Thanks so much
+ 1
☺☺