Tell us what’s happening:
how do i call the functionWithArgs with two nmbers?
Your code so far
function functionWithArgs(a, b) {
console.log(a + b);
}
functionWithArgs(10 + 5)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Passing Values to Functions with Arguments
Link to the challenge:
nvm i got it
thank you tho
Here, you have the explanation. The first arg is ‘a’, then goes a comma, and the second argument ‘b’:
functionCall(a, b) ..whatever the 'a' and 'b' e are...
This is guidance.
1 Like
yaaaa i forgot to put the comma i put the addition symboll instead of the comma
system
Closed
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.