I’m currently learning a bit of javascript, using a variety of resources, one of them being codewars. So I thought I would post the katas as I work through them (slowly, of course), including my solution and how I got around to figuring them out.
Here’s the first one.
Correct the following code:
[gist id=”420b3f151a6bb94658bb” file=”codewars_javascript_kata_01_problem.js”]
Here’s my solution:
[gist id=”420b3f151a6bb94658bb” file=”codewars_javascript_kata_01_solution.js” highlight=”2″]
Explanation: