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.
put
before the
if
statement in your for loopAh, I wonder if it is any different now as I made an attempt with the code I was using prior.
Sorry, I'm still figuring out how this works!
@Doperoni
when I try clicking on the
View Solution
button, all I saw was this:This comment is hidden because it contains spoiler information about the solution
Unfortunately, none of that seems to be of any help. :(
All I get from the test output is "expected +0 to equal 15."
Which I am assuming is saying that the first test does not equal 15.
It seems to work in my replit compiler though.
read the test output, read the example test code, use console.log
I am wondering if there is anybody who can look over the code that I have? I've been testing it on an online replit js compiler and it seems to work as the function asks. However, everytime I make an attempt it fails.
Maybe it's because I'm using the "..." rest operator?
Sorry, I am very new to this and don't have anybody I can ask inrl.
I didn't want to post my code publically to avoid spoilers.