• Sign Up
  • Kata
  • Kumite
  • Blog
  • Forum
  • Wiki
  • Leaders
  • Log In
  • Sign Up
Name:Unknown
Clan:Unknown
Member Since:Jun 2014
Last Seen:Jan 2015
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (23)
  • Replies
  • Authored
  • Needs Resolution
    • FArekkusu
    • created an issue for "Dangerous Dates" kata

    No sample tests.

    • Lucky Luke
    • created a suggestion for "Say "Hello World" JS Style" kata

    Typescript translation added, please approve.

    • matt c
    • commented on "Say "Hello World" JS Style" kata

    This comment is hidden because it contains spoiler information about the solution

    • tu6619
    • commented on "Say "Hello World" JS Style" kata

    This comment is hidden because it contains spoiler information about the solution

    • emporio
    • commented on "Dangerous Dates" kata

    You should include how you pass the date parameter

    • computerguy103
    • created an issue for "Dangerous Dates" kata

    You need to check spans which include the days when Daylight Savings Time begins and ends. Solutions which naively add 24-hour intervals will give the wrong result.

    Test.assertEquals(nextFiveDays(new Date(2012, 10, 2)),
      '11/3/2012, 11/4/2012, 11/5/2012, 11/6/2012, 11/7/2012',
      'Should give correct result when Daylight Savings Time ends');
    Test.assertEquals(nextFiveDays(new Date(2013, 2, 7, 23, 59)),
      '3/8/2013, 3/9/2013, 3/10/2013, 3/11/2013, 3/12/2013',
      'Should give correct result when Daylight Savings Time begins');
    

    I know, I know... dates are hard.

    • ralphbacon
    • commented on "Dangerous Dates" kata

    This is doubly tricky for any non-US coders as our dates are not in the format mm/dd/yyyy and it is second nature to ooutput them as dd/mm/yyyy!

    • Azuaron
    • commented on "Say "Hello World" JS Style" kata

    There's another kata kicking around somewhere (forget what it's called) that does just this. You end up overriding the function's valueOf function to return the final result. Then you don't have to muck around with the weird command parenthesis and you can just do say('Hi')('Tom') and say('Hi')('Tom')('Jones') to get what you'd expect.

    • mecampbellsoup
    • commented on "Say "Hello World" JS Style" kata

    Anyone have an answer to this question?! We are trying to figure out how to make this recursive somehow as well...

    • Smooth0perator
    • commented on "Say "Hello World" JS Style" kata

    I suppose it's a good intro to functions with JS but, really it was easy!

    • xcthulhu
    • commented on "Say "Hello World" JS Style" javascript solution

    Yeah, you're right.

    • mat
    • commented on "Say "Hello World" JS Style" javascript solution

    Did you actually read that post? They show that it hardly matters for 100,000 iterations, and we already know this only needs to handle 2 strings.

    • Jeyanthinath
    • commented on "Say "Hello World" JS Style" kata

    How to generalise the function to accept more number of parathesis

    say('Hello')('this')('is')('what')('i') ('want');

    The function has to accept n number of paranthesis

    • BrightIntelDusk
    • commented on "Say "Hello World" JS Style" kata

    This comment is hidden because it contains spoiler information about the solution

    • xcthulhu
    • commented on "Say "Hello World" JS Style" kata

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...
  • © 2021 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm