7 kyu
Understanding closures - the basics
2,851 of 2,852daymos
Description:
This is a simple exercise to understand the feature in the javascript language called closure.
The function buildFun will return an array of functions. The single parameter accepted by buildFun is the number of elements N of the array returned.
The wanted outcome is that when all function in the array are executed, the number from 0 to N should be returned.
Fundamentals
Debugging
Similar Kata:
Stats:
Created | Feb 7, 2016 |
Published | Feb 7, 2016 |
Warriors Trained | 5432 |
Total Skips | 155 |
Total Code Submissions | 13471 |
Total Times Completed | 2852 |
JavaScript Completions | 2851 |
Total Stars | 57 |
% of votes with a positive feedback rating | 77% of 236 |
Total "Very Satisfied" Votes | 155 |
Total "Somewhat Satisfied" Votes | 55 |
Total "Not Satisfied" Votes | 26 |