call a function multiple times javascript code example
Example: call a function multiple times
function beCheerful() {
console.log('good morning');
}
for (var i = 0; i < 98; i++) {
beCheerful();
}
function beCheerful() {
console.log('good morning');
}
for (var i = 0; i < 98; i++) {
beCheerful();
}