-3
function parimp(n){
for(var i = 0; i <= n; i++){
if(i % 2 == 0){
return "par";
}else{
return "impar";
}
}
}
var s = parimp(25);
console.log(s);
Got it. Return closes the function. Thanks :)
– Sophia Yuno