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.
It's just the opposite.
This comment is hidden because it contains spoiler information about the solution
look for recursive functions
This comment is hidden because it contains spoiler information about the solution
Dont mean to burden with this simple operation but I'm left a bit confused on the !(weight % 2) can someone shed some light on this...
log the function parameter it will be incrementing
Amazing code but i dont seem to understand it any tips on getting my code to be this logical?
wow thats really cool thanks for the reply man!
It's because 'string1' * 'string2' causes both strings to be converted to numbers and then multiplied. (it's the
*
operator that forces this conversion, as do-
and/
, but not+
, which does string concatenation)Where does this coerce to a number? it goes into your factorial function as a string then changes to number type.. why is that? is it because the boolean coerces it automatically? great solution by the way very easy to read!
I can tell these kinds of things take a lot of initiative but are there any sort of tips you'd give me on coding?
I can tell these kinds of things take a lot of initiative but are there any sort of tips you'd give me on coding?