All challenges

JavaScript challenge · Frontend

Once

Difficulty

easy

Time

~15m

Format

Single

Grading

Auto-graded

#frontend#javascript#typescript#functions#closures
Mission file // read carefullyeasy

Implement a once(fn) wrapper function that restricts the execution of fn to exactly once. Subsequent calls should return the value computed during the first call.

Build with

TypeScriptJavaScript
Hidden test suite
Auto-graded on submit
Start challenge

Sign in to save your progress.