Functional Programming: Pass Arguments to Avoid... - Correct answer not accepted
See original GitHub issueChallenge Name
Functional Programming: Pass Arguments to Avoid External Dependence in a Function
Issue Description
Correct answer is not accepted when space between function name and params is not removed.
Browser Information
- Browser Name, Version: Chrome 63.0.3239.84 (Build oficial) (64 bits)
- Operating System: Win10
- Mobile, Desktop, or Tablet: Desktop
Your Code
Not accepted:
function incrementer (val) {
return val+1;
// Add your code above this line
}
Accepted:
function incrementer(val) {
return val+1;
// Add your code above this line
}
Screenshot
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (6 by maintainers)
Top Results From Across the Web
How to avoid passing configuration across functions?
I want to allow users to set locale parameter so that they have month names and other data in language of their choice....
Read more >Pass Arguments to Avoid External Dependence in a Function
In this functional programming tutorial we pass arguments to avoid external dependence in a function. This video constitutes one part of ...
Read more >Java 8 Functional Programming - Passing function along with ...
My requirement is to wrap every method execution inside timer function which times the method execution. Here's the example of timer function ......
Read more >Don't Understand Parameters - Codecademy
The neat thing about parameters is that the variables are scoped to the function, making them locally defined. The variable names are arbitrary...
Read more >The Not-So-Scary Guide to Functional Programming | YLD Blog
A side effect is when a function relies on, or modifies, something outside its parameters to do something. For example, a function which...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Felixr91 There are two ways to use the increment operator:
num++
and++num
. The difference between them is when the value is returned. You can read about them here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators#Increment_()To fix your code, you can either do
or
@Felixr91 Glad I can help! To be honest, I had to revisit the page, too, after I saw your comment 😄