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.
I am not an expert by any means, but at a first glance, you are reserving extra space with var j, when you could use parameter x directly.
You need to return your output; returning the value means the value is retained from that function call. The value retained can be checked and checked for equality against the expected answer. You are attempting to modify to the HTML on the page, which can only be check locally, not globally.
All katas on this website work like this.