lesson-cover

Go Back

Foundations of JavaScript

Sum of 2 Numbers

Write a function that takes in 2 numbers and returns their sum.

Here's how another developer might use your function:

solution(5,9) // Should return 14
solution(4,1) // Should return 5