All challenges
Type a Higher-Order Function
easyfunctions50 XPProblem
Write applyTwice(fn, start) that applies the function fn to start, then applies fn again to that result. The first parameter must be typed as a function that takes a number and returns a number. Return the final number.
Expected output
16
20Hints
Stuck? Reveal hints one at a time.
Solution
Try solving it yourself first — revealing is always available.
Press Run in the editor — your console output is checked automatically.
No errors
Loading...
Console output appears here. Press Run or just type — the code compiles automatically.