Tell us what’s happening:
Your code so far
function functionWithArgs(param1, param2)
{console.log (1+2, 7+9 );}
functionWithArgs(3,16)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
.
Challenge: Passing Values to Functions with Arguments
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
console.log(param1,param2)
change this
same error. Can you please be more detailed?
what u need to print
function functionWithArgs(p1,p2){
console.log(p1,p2)
}
functionWithArgs(1,2)
it will print 1 2
Instead of posting your solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full solutions.
Thank you for understanding.
3 Likes
3 16
functionWithArgs(1,2)
should output
3
. // tests completed // console output 3 16
i have the outputs … but i get the errors anyways…
ILM
July 14, 2020, 4:27pm
10
you need to print the sum of the two numbers inputted in the function
but you need to do that using the function parameters
1 Like
Thanks guys… you really are awesome… gathering ideas from you and ive been able to sort myself out.
To the future
1 Like