JS Function Problems needed to be Completely Reworked with IDE

I’ve been working through the function section of JS. The function decleration in the IDE is not working correctly IMO. It is requiring the functionName to be Capitalized FunctionName and camelCase is required to pass the challenge.

Write Reusable JavaScript with Functions (Used in the Example Below)

What I believe is the Correct Answer:

function reusableFunction(){
console.log("Hi World");
}
reusableFunction();

What was able to pass the parameters:

function reusableFunction(){
console.log("Hi World");
}
function ReusableFunction(){
    console.log("Hi World");
}
reusableFunction();
ReusableFunction();

Passing Values to Functions with Arguments

(Also having the same issue with the function name needing to be capitalized, this would be ok if the parameters required to pass was not a function name of functionWithArgs)

Edited

can you give more concrete examples?

like, the link of the challenge and what the issue is exactly?

1 Like

Please refer back to the original post it has since been edited and makes the case for a logical error on the backend.

ReusableFunction is not doing anything for the tests, delete it all and it passes anyway


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

what’s your code for this one?

function FunctionWithArgs(param1, param2){
console.log(param1 + param2);
}
FunctionWithArgs(1,2);
FunctionWithArgs(7,9);
FunctionWithArgs(8,4);

function functionWithArgs(One, Two){
    console.log(One + Two)
}
functionWithArgs(1,2);
functionwithArgs(7,9);
functionWithArgs(8,4);

Was not able to make this one work. 

So you are saying you did not see any problems with the first one ( Write Reusable JavaScript with Functions)?

Ok, My apologies. I did as you suggested reset and placed the code above and it is working now. Strange.
Assume it has been corrected. I will redo the 2nd problem.
Thanks

also here, the tests want only functionWithArgs

what do the tests say?

function functionWithArgs(one, two){
console.log(one + two);
}
functionWithArgs(2,3);

This was a correct answer.
Hmm, for some reason the lowerCaseNamedFunction was not working but after a reset they now are.
In the future if I’m having issues I will go automatically to resetting the problem.
Cheers.
Feel free to delete the thread.