how to run a function two 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();
}