This is the JavaScript code.
function loadProfiles(usernames){
if(usernames.length>3){
var wmsg='This might take a while';
}
else{
var imsg="Just a sec";
}
console.log(imsg);
}
loadProfiles(['Dinesh','Saratha','Sundhararasu']);
when i try to console wmsg it gives undefined
when i try to console imsg it gives just a sec but expected output is undefined.
what is the reason?