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.
You could replace the brackets
{ }
by parenthesis( )
and removing thereturn
keyword.definetly best one, very flexible
wonderful explanations, thank you greatly!
just gave you a follow, if i have any dire questions down the line, i will be sure to reach out.
the === is used in JS to compare values and data types, because == does the type conversion before comparing (you can try to compare 2 and "2" with == and then with === and if i am not mistaken both of these will give you different answer
? : is a ternary operator, you can think of it as shorthand for if/else statement
? condition is true : condition is false
i recommend using ternary operator only with simple if/else statements and i do not recommend nesting ternary operator, i believe you can find some videos about use cases of ternary op. on YT
if you have more questions feel free to message me, i am happy to help
im having a hard time understanding the usage of ? and : and ===
any insight?