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.
Actually, Chrome and Node.js use the same engine, but the versions may be different. And the rest is true.
Except CW and Chrome are different environments using different JavaScript engines. Without seeing your code it's impossible to tell what's the source of the issue, although most likely it's a bad comparator. In any case, not an issue.
the thing you don't know about the random tests for now is the inputs that are sent to your function. You get your result and the expected one in the assertion. "print the input to the console" (->
console.log(yourType, opponentType, attack, defense)
), right at the beginning of your function, so you'll see in the console (left panel) the inputs appearing just above the corresponding assertion message.console.log("stuff in there")
print the input to the console to get a grasp about what's going on
@alex_prog
it's best to mention the language you're using, but this is clearly about javascript, so here you go: the js spread syntax