Rearrange lines in the correct order. Make the function work, note that indentation is just as important.
Self-invoking functions and closures
Closure function line ordering
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
}; // second closing bracket
function createMultiplier(factor) {
return factor * number;
}; // first closing bracket
return function(number) {
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.