Help Please, Stuck in this lesson

Tell us what’s happening:
I have looked at hints, watched the video 4 times, I’m not even getting any “X” s when I run the test. Nothing?!!

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 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Passing Values to Functions with Arguments

Link to the challenge:

You need to look at the basic syntax for the functions and how to call them :slight_smile:

Defining a function

function(parameter 1, parameter2) {
    //do something
    //return a value or maybe console.log()

calling a function

functionName(parameter1, parameter2)

Make sure you’re putting semi colons in the proper places and are actually calling the function and passing it the necessary parameters. Hope that helps!

Thank you for answering quickly, I changed it, but it still won’t even run the tests. :cry:

First declare your function:

function functionWithArgs(arg1, arg2) {
return arg1 + arg2;

then call your function, passing it your arguments:

functionWithArgs(1, 2)

The challenge is asking you to console log your result not return it so change that part of the code.

Make sure you fully understand functions before moving on they are extremely important.