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.
This comment is hidden because it contains spoiler information about the solution
i sugest you should be patient and do 8 or 7 kyu kata, no need to rush bro
And then you keep reading the description and see the examples about how to build the tower. In javascript it's an array of strings.
I don't understand the challenge... you pass a number representing floors and ?
Where is the
return
keyword there? Try addingreturn result;
This comment is hidden because it contains spoiler information about the solution
Without seeing your code, me neither. In the link it is explained how to post your code here, give it a try and make sure you mark your post as having spoiler content.
Thanks for the reply I did find that yesterday and had a read, but I'm struggling to understand what it is I'm doing wrong. I am attempting to return it yet all I get is undefined so I'm none the wiser.
Your function should return the result instead of printing it to the console. Please read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
I'm attempting this challenge with JavaScript in the browser console it works, but it fails the test says its undefined and I don't understand why. I figured I'd use filter to filter out those that are exactly 4 characters but it just throws a bunch of undefined back at me why?