Seksjon 3. Kapittel 6
single
Challenge: Returning a Multiplier Function
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår