We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdb8cd1 commit 1785325Copy full SHA for 1785325
digit_name.js
@@ -1,3 +1,6 @@
1
+// The outer function executes immediately, and it returns the inner function.
2
+// The inner function is a closure, and retains access to the names array for
3
+// as long as digit_names has scope.
4
var digit_name = function () {
5
var names = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];
6
0 commit comments