Basic JavascriptPassing Values to Functions with ArgumentsPassed

Tell us what’s happening:
Im not breaking through what am I doing wrong?

Your code so far


function functionWithArgs (param1, param2) {
var sum = a + b
 a = 1
 b = 2
var sum = a + b
a = 7
b = 9
console.log(a + b)
}
functionWithArgs(1, 2)

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; LM-X420) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36.

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

2 posts were merged into an existing topic: Basic JavaScript: Passing Values to Functions with ArgumentsPassed