Challenge for Functions, Scope and Closures
Challenge
Given the following code:
function doThrice(action){
action();
action();
action();
}
function greet(){
console.log("Hello, how are you doing?");
}
...write one line of code that will print "Hello, how are you doing?" three times.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.