• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
willc Avatar
Name:Unknown
Clan:Unknown
Member Since:Aug 2014
Last Seen:Sep 2016
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (13)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Ryan9698
    • commented on "Are You Playing Banjo?" javascript solution
    • 14 months ago

    This is how I did it but I used a ternary operator

  • Custom User Avatar
    • LauraC-bit
    • commented on "Are You Playing Banjo?" javascript solution
    • 2 years ago

    Oh I never saw that one, thanks you for reply !

  • Custom User Avatar
    • regfox
    • commented on "Are You Playing Banjo?" javascript solution
    • 2 years ago

    Hi! This is a shorter way of accessing the .charAt() method on a string. Take a look at the docs here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#character_access

  • Custom User Avatar
    • LauraC-bit
    • commented on "Are You Playing Banjo?" javascript solution
    • 2 years ago

    Hi! Beginner here, I thought [] was for the array only. Why, can we use [] for the string "name" here? Sorry for my bad english.

  • Custom User Avatar
    • StevieBrooks
    • commented on "Are You Playing Banjo?" javascript solution
    • 3 years ago

    This is more or less how I did mine. The only difference is that I used string interpolation instead.

  • Custom User Avatar
    • sanram23
    • commented on "Are You Playing Banjo?" javascript solution
    • 3 years ago

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

  • Custom User Avatar
    • przemek-git
    • commented on "Are You Playing Banjo?" javascript solution
    • 3 years ago

    In general a good practice is to avoid unnecessary code, but sometimes it's better to write more for readability.

  • Custom User Avatar
    • rowcased
    • commented on "Are You Playing Banjo?" javascript solution
    • 3 years ago

    Isn't also a best practice not to have multiple return statements when not necessary?

  • Custom User Avatar
    • przemek-git
    • commented on "Are You Playing Banjo?" javascript solution
    • 3 years ago

    It's not a good practice to put else statement after return.

  • Custom User Avatar
    • cliffstamp
    • resolved an issue on "Is Integer Array ?" kata
    • 7 years ago

    .

  • Custom User Avatar
    • computerguy103
    • commented on "Is Integer Array ?" kata
    • 11 years ago

    This is not an issue. The problem is with your code. You defined your sum variable outside the function, so it's global. It needs to be defined inside your function so it's a local variable.

  • Custom User Avatar
    • bijanbwb
    • commented on "Are You Playing Banjo?" javascript solution
    • 11 years ago

    I hadn't realized how awesome it is to be able to review other solutions until this challenge. I knew there was a better way than my initial solution, but it's so great to be able to review all of them and see some of the ideal ways of going about things.

  • Custom User Avatar
    • willc
    • created an issue for "Is Integer Array ?" kata
    • 11 years ago

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

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...