question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing Values to Functions with Arguments

See original GitHub issue

My issue is that i am writing the correct code even as it is in the example but it keeps saying test passed but doesnt proceed to the next page.

`// Example function ourFunctionWithArgs(a, b) { console.log(a - b); } ourFunctionWithArgs(10, 5); // Outputs 5

// Only change code below this line.

function fucntionWithArgs(a, b) { console.log(a + b); } fucntionWithArgs(90, 9);`

Google Chrome Windows

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Hardik500commented, Jun 14, 2019

Looks like you got a typo error in your code Instead of fucntionwithArgs it needs to be functionWithArgs. Let me know if that solves ur problem

0reactions
StigEzehcommented, Jun 14, 2019

Looks like you got a typo error in your code Instead of fucntionwithArgs it needs to be functionWithArgs. Let me know if that solves ur problem

Yikes, i just saw the error. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Function Parameters - W3Schools
Arguments are Passed by Value. The parameters, in a function call, are the function's arguments. JavaScript arguments are passed by value: The function...
Read more >
Passing-values-to-functions-with-arguments - JavaScript
When you are defining a function, you can specify variables for that functions scope. The variables will only be available within that function...
Read more >
How to pass multiple arguments to function ? - GeeksforGeeks
The * symbol is used to pass a variable number of arguments to a function. Typically, this syntax is used to avoid the...
Read more >
Pass by reference (C++ only) - IBM
Pass -by-reference means to pass the reference of an argument in the calling function to the corresponding formal parameter of the called function....
Read more >
24. Passing Arguments | Python Tutorial
If you pass immutable arguments like integers, strings or tuples to a function, the passing acts like call-by-value. The object reference is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found