Basic JavaScript - Passing Values to Functions with Arguments

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

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


Your browser information:

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

Challenge Information:

Basic JavaScript - Passing Values to Functions with Arguments

Hi, welcome to the community! :wave:
For your own function, you’ll be wanting to use the basic layout that is given in the example of the challenge. You can see there that at first, no numbers are given, just the names of the parameters. The numbers are then passed in later. This is why functions are so neat, they can be used for all sorts of calculations later on.
If you have any further questions, try to describe them as much as you can :slight_smile:

1 Like

yeah got it thank you :slight_smile:

2 Likes

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