In JavaScript, which is overall more efficient? Using IFs statements, Swith-Case, or K-V pair object with anonymous function? I have seen people using IFs- S-C and my self using K-V objects(something I picked from C# unfortunately).
Unreadable code
Same here. Never seen one like this before and I am new to JS to begin with
nothing wrong with a classic
YandreDev'd
Almost the same
This comment is hidden because it contains spoiler information about the solution
I like this
Edit: Oh wait, it is actually operating the other 3 as well, even if they are not selected? XD JS is weird.
One of the tests is telling me "expected 16 to equal 8"
And one of the random ones is showing a negative as answer
Is this normal behavior?
I have the same thing. I am getting it as input. Shouldn't they be squared in the second list? [42, 42] [42, 42]
As well as the second guy who has an empty list which should return false, not true.
Loading collection data...
In JavaScript, which is overall more efficient? Using IFs statements, Swith-Case, or K-V pair object with anonymous function? I have seen people using IFs- S-C and my self using K-V objects(something I picked from C# unfortunately).
Unreadable code
Same here. Never seen one like this before and I am new to JS to begin with
nothing wrong with a classic
YandreDev'd
Almost the same
This comment is hidden because it contains spoiler information about the solution
I like this
Edit: Oh wait, it is actually operating the other 3 as well, even if they are not selected? XD JS is weird.
One of the tests is telling me
"expected 16 to equal 8"
And one of the random ones is showing a negative as answer
Is this normal behavior?
This comment is hidden because it contains spoiler information about the solution
I have the same thing. I am getting it as input. Shouldn't they be squared in the second list?
[42, 42]
[42, 42]
As well as the second guy who has an empty list which should return false, not true.