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

Stats:

CreatedFeb 7, 2016
PublishedFeb 7, 2016
Warriors Trained5432
Total Skips155
Total Code Submissions13471
Total Times Completed2852
JavaScript Completions2851
Total Stars57
% of votes with a positive feedback rating77% of 236
Total "Very Satisfied" Votes155
Total "Somewhat Satisfied" Votes55
Total "Not Satisfied" Votes26
Ad
Contributors
  • daymos Avatar
  • jhoffner Avatar
  • GiacomoSorbi Avatar
Ad