time a function multiple times 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();
}