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.
if n%2 is 0 it becomes false means it will use 8, and anything other than 0 is true.
if the condition of ternary operator isn't Boolean type, maybe JS convert the condition to Boolean type first,and 0 to Boolean type is false, other number is true.
Can someone tell me why he is not comparing to zero?
I mean, I really love this solution but i dont get it at all
fds?
bedalah itu lebih sederhana 0 berarti false dan angka selain nol adalah true, itu gak kepikiran bagi sebagian orang
no need for zero(initialValue)
podo ae || same
если консолить это в node все значения с минусом (
nice work mate
ohh amigo eres un crack
It's cool!
Well done really like this.
that's actually very clever!
wao never thought of this solution, although i was close.
Thank you both.
Loading more items...