Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Has nothing to do with throwing an exception vs throwing an error.
The jealousy is strong here, lol. 'c' can easily stand for 'carry over' as that is exactly what it is used for. 'a' and 'b' are provided by the person who designed the kata in the first place, so that parts settled. 'res' could stand for 'residue', or 'residual', or wth cares. What even is this?
The part that seems to be the crux is using remainders to compute a sum. I have never seen this. Very super duperly.
@C_Minor So you assume the wheel, as it was first invented by a man named Dunlop, is the best iteration of the wheel?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Seems you're not going to get this through.
The problem you've in your code is that arguments are never being used in the body of the function, and you are right that it works BUT it works because you've declared
arrayA
andarrayB
to be global, it just don't care about the arguments(If you wanna verify this: pass "apple", "oranges" to the function, it would still work -- you get the idea I guess.)You should replace
arrayA
witha
andarrayB
withb
.In the call fuction, inside the console.log(). arrayA, and arrayB are passed in for a, and b respectively. arrayA, and arrayB are initialized at the top, and can be altered to match any test arrays.
@Justletmein, can you please tell us where do you think the arguments of the function
a, b
are being used?How is it wrong lol? I just said it works. You can plug it into any IDE and it works. Who are you anyway?
Any salt you're tasting is surely your own tears.
Fix your code instead of blaming everything else 🤣
If you're unsure what's wrong then as a tip: don't state as a fact that it's right.
I did however still point out the problem.
You can put in any the test input, and it works. 🤣 Why so salty?
your code completely ignores input, it does not work.
when you test something locally you need to test the same thing as the tests test, otherwise the comparison is pointless.
This comment is hidden because it contains spoiler information about the solution