• 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
t-macp Avatar
Name:Unknown
Clan:Unknown
Member Since:Sep 2022
Last Seen:May 2023
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (12)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Chrono79
    • commented on "Calculating with Functions" kata
    • 2 years ago

    Please read this: https://docs.codewars.com/training/troubleshooting/#post-discourse

  • Custom User Avatar
    • t-macp
    • commented on "Calculating with Functions" kata
    • 2 years ago

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

  • Custom User Avatar
    • Chrono79
    • resolved a question on "Calculating with Functions" kata
    • 2 years ago

    While you write the functions that are needed and they return what they should, there is no limit about another functions you could use inside them.

  • Custom User Avatar
    • t-macp
    • created a question for "Calculating with Functions" kata
    • 2 years ago

    first of all. I have learned so much by atempting this kata! Very challenging in a fun way.

    this may be a stupid question but are we allowed to create more functions than the ones given?

  • Custom User Avatar
    • hobovsky
    • commented on "Count the divisors of a number" kata
    • 2 years ago

    Besides the global var my code was completely correct.

    The "besides" part makes a big difference tho!

    What you first replied with made me more confused...

    Oh I am sorry to hear that, because I definitely did not mean to confuse you :) Glad you got it tho!

  • Custom User Avatar
    • t-macp
    • commented on "Count the divisors of a number" kata
    • 2 years ago

    Just saw your reply. Besides the global var my code was completely correct.

    What you first replied with made me more confused... I honestly do appreciate your attempt at help though!

  • Custom User Avatar
    • t-macp
    • commented on "Count the divisors of a number" kata
    • 2 years ago

    disregard. I just found out i shouldnt use global var in kata

  • Custom User Avatar
    • hobovsky
    • commented on "Count the divisors of a number" kata
    • 2 years ago

    Yes, you did something wrong, and I tried to show you how to figure out what you did wrong. In your VS code, your code also gives wrong answer if you run it like this:

    ...
    
    // todo
    let data = 10;
    getDivisorsCnt(data);
    getDivisorsCnt(data);
    
  • Custom User Avatar
    • t-macp
    • commented on "Count the divisors of a number" kata
    • 2 years ago

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

  • Custom User Avatar
    • hobovsky
    • commented on "Count the divisors of a number" kata
    • 2 years ago

    Try running this in your VS Code:

        console.info(getDivisorsCnt(1));
        console.info(getDivisorsCnt(1));
    
  • Custom User Avatar
    • hobovsky
    • commented on "Count the divisors of a number" kata
    • 2 years ago

    Yes, this happens sometimes when the code is wrong.

  • Custom User Avatar
    • t-macp
    • commented on "Count the divisors of a number" kata
    • 2 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...