Javascript Values to Functions with Arguments

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

function functionWithArgs(1,2){console.log( 1 + 2 ); }
function functionWithArgs(7,9){console.log( 7 + 9); }

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

Did you have a question?

Also, when you declare a function, the things in parentheses should be variable names inside the function, where you will store the passed to the function.

function sayHi(name) {
  console.log('Hi, ', name)


That will output "Hi, Bob" because we passed it a string “Bob”, that got accepted by the function and stored in a variable called “name” and then got used in the function.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.