lesson-cover

Go Back

Foundations of JavaScript

Functional Sum

Takes in 2 numbers, return a function that returns the sum when the function is called

Example:

const a = solution(5,6) // a is a function, and a() will return 11