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 you print it, it will (probably) use the newline.
Handlers (handling functions) are the subscribers of your
Event
object. The invocation context of a function is a value you get when you referencethis
inside the function. The requirement is,this
inside the handlers should point tothis
of theemit
method, i.e. the instance of theEvent
object. The error tells you it's not happening in your case.This functionality is needed so you could subscribe and unsubscribe to the event from within your handlers, like this:
Hello i am stuck with this error : handler invocation context should match emit invocation context. An idea please ?
Well, it's because there's no reset/limit for the hour specified in the kata. The kata only wants you to format in
HH:MM:SS
, in whichHH
is the highest in the order of the format.semone would tell me why hours are between 0 and 99, please ?
The first element in the array is 'I love you' instead of 'not at all' ..... ;)
thank you for response. Effectively, i thought that should display \n ....
No, they're not, they look alike, but you're escapeing the
\n
and doing so, it doesn't work as a new line.the two strings are equal but get this error : expected '0,1,2,3,45\n10,11,12,13,14' to equal '0,1,2,3,45\n10,11,12,13,14'!!