bolle
July 7, 2022, 11:03am
#1
Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function functionWithArgs(1 2 , 7 9) {
console.log(3,16);
}
console.log(1)
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36 Edg/103.0.1264.44
Challenge: Passing Values to Functions with Arguments
Link to the challenge:
you have to review the instructions for how to define a function with parameters, and how to call it with arguments
yuvi1
July 7, 2022, 11:16am
#3
That’s right, you can google it for JavaScript sum / add functions
bolle
July 8, 2022, 1:09pm
#4
It still wont work if have read it about 50 times i can’t seem to get past it , there is nothing logic in the way they set up this question or even the way that they gave information on it , the video also has nothing to do with the subject at hand… This is messing me up in a bad way.
Lets decipher task.
Create a function called functionWithArgs
I will create some other function for the sake of example
function randomFunction(){
}
not enough
we need function with 2 param-s
function randomFunction(p1, p2){
}
‘outputs their sum to the dev console.’
I doubt you have any trouble with sum.
My fuction will just output some product.
function randomFunction(p1, p2){
console.log(p1 * p2);
}
Questions?
bolle
July 8, 2022, 1:10pm
#6
Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function functionWithArgs(param1,param2) {
console.log(1+2, 7+9);
}
functionWithArgs(1, 2)
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36 Edg/103.0.1264.44
Challenge: Passing Values to Functions with Arguments
Link to the challenge:
udaaff
July 8, 2022, 1:22pm
#7
You need to output in the console the sum of the function parameters, which are param1 and param2.
Some duplicated topics were united? I am a little confused by the dynamic of this thread)