let output = "Hello World";
let counter = 0;
welcome(output);
welcome(output);
welcome(output);
function welcome(para) {
counter++;
let temp = counter + " times run";
console.log(para);
console.log(temp);
}
In the above small JS function why is this line console.log(para);
so important, and w/o this line console.log(temp);
is also not publishing anything.