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.
the cursor is not coming down even though you press enter
As Chrono79 wrote, don't add anything or alter the given table. In SELECT statement, you can define a new column in you output and wrote a constant or formula to populate that column. Use this.
Hello everyone, who finds it difficult to solve the problem, don’t worry, don’t rush, we are all learning here and what seems difficult at first will become simple over time. Just find out how to determine whether a number is even or not. And then simply based on this number, return the string ("Even" or "Odd")
Your code is very close to being correct!
The name of the column alias should be given without 'single quotes', it should be
AS is_even
.This comment is hidden because it contains spoiler information about the solution
well i didn't really read that, so much as just started playing around with the challenges :')
but i got there in the end, just thought i'd leave a comment in case someone did the same thing as me xD
It's somewhat implied by the "Create a function that [...] returns ...".
Also it's kind of documented.
would have been easier if i knew i wasn't allowed to use print and expected to use return instead xD
that breaks however if you submit 2, instead of 2.0
This comment is hidden because it contains spoiler information about the solution
@hobovsky
no u
Your solution is already present in the solutions tab for all to see and discuss. Sharing it under discourse - unformatted, no less - is redundant. Even if you mark it as spoiler, it will still spoil it for those who solved the Kata in other languages but not JavaScript yet.
This comment is hidden because it contains spoiler information about the solution
See https://docs.codewars.com/training/training-example.
Loading more items...