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.
Thanks Rambutan for still providing golden nuggets of knowledge 6 years later! I'm new too and while I did solve the problem this is a great explaination/break down on incrementing and loops.
Thanks for this explanation.
Never thought of using the modulo operator that way! Excellent.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks for such a detailed explanation
This comment is hidden because it contains spoiler information about the solution
&&
evaluates to the first value if falsy, else the second. This means thatnull && any
will always evaluate tonull
(notfalse
).And yes, this is basically a protection against accessing a property of a
null
orundefined
value, because this would lead to aTypeError
(notundefined
).This comment is hidden because it contains spoiler information about the solution
重复了
条件?2:1
如果条件为真,值是2。否则,值是1
这是典型的三目运算符
重复了,删除
请问2:1是什么意思?
That is how the stack works, last in first out. Recursion is basically doing
node.concat(node.concat(node.concat...
, so the inner most concat or the top of the stack executes first.This comment is hidden because it contains spoiler information about the solution
Loading more items...