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.
this is cringe dude
cringe
else? tabs?
or it's meme..? then lol
si hacia falta el ultimo condicional?
else if(num === 0)
matematicamente no hace falta un -0This comment is hidden because it contains spoiler information about the solution
cool, you thought of all kinds of returns, but then you overload your function when it could only do one thing, the only thing it needs to do is turn positive into negative, positive is all those above 0, so
num > 0 return "some way to pass it negative"
, the rest can be returned the number itself, so just put areturn num