JS
challenger
Home
JavaScript Practice
JavaScript fundamentals
Sum two numbers
Sum two numbers
Write a function that takes two numbers (a and b) as argument. Sum a and b. Return the result
reset
function myFunction(a, b) {
return
} console.log(myFunction(1, 2)) // expected: 3 console.log(myFunction(1, 10)) // expected: 11 console.log(myFunction(99, 1)) // expected: 100
JavaScript
Run Code
Console