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.
Same problem in PHP:
TypeError: Argument 2 passed to getPercentage() must be of the type integer, none given, called in /home/codewarrior/run.php on line 20
This comment is hidden because it contains spoiler information about the solution
Do you know how to handle a function with a variable amount of parameters?
Hey
Sorry for the delay.
It is called conditional operator, or ternary operator.
It work like this:
value = if_this_is_a_true_value ? then_the_result_is_this : else_it_is_this
http://stackoverflow.com/questions/4252936/how-do-i-use-the-conditional-operator-in-ruby
If you have other questions regarding programming, I am happy to help.