Basic JavaScript - Passing Values to Functions with Arguments

Tell us what’s happening:

Describe your issue in detail here.
I’m not sure what I’m doing wrong. The results are there. But I get three(3) twice.

Your code so far

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

functionWithArgs(3,16);

Your browser information:

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

Challenge Information:

Basic JavaScript - Passing Values to Functions with Arguments

1 Like

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Hello!

The arguments should not go inside the function body, just into the function call. You are to use the parameters again, which are placeholders for the arguments.
The function name used for the challenge can be a bit confusing.

This way you are saving repeated lines of code.

2 Likes

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