Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
JavaScript
/
Closures
Two consumers need independent retry counts. Which design gives each one a separate captu…
from Closures
Node 24
beginner
1 min
Two consumers need independent retry counts. Which design gives each one a separate captured binding?
Call the counter factory once for each consumer.
Call the factory once and assign its result to two variable names.
Call the factory once and copy the returned function with object spread.
Store one returned function in two different arrays.
Check
Ask AI about this kata
Report an error
previous kata
A closure reads a let binding that is reassigned after the function is created. Which val…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload