Sektion 3. Kapitel 6
single
Challenge: Returning a Multiplier Function
Stryg for at vise menuen
Opgave
Swipe to start coding
Write a function that returns another function which multiplies its argument by a fixed number.
- Call the nested function
multiplier. - The returned function must multiply its input by the value of
n. - The outer function must return the inner function.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 6
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat