• 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
paool Avatar
Name:Unknown
Clan:Unknown
Member Since:Aug 2014
Last Seen:Nov 2015
Profiles:
    Following:1
    Followers:1
    Allies:1
    View Profile Badges
    Ad
    Educator, struggling to assess your students?
    Assess your classroom or bootcamp with the world leading assessment platform, Qualified.Request your demo today!
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (9)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Voile
      • commented on "Number Of Occurrences" javascript solution
      • 8 years ago

      In JavaScrpt, this is the execution context:

      https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this
      https://stackoverflow.com/questions/3127429/how-does-the-this-keyword-work

      In an object's prototype function, this refers to the object that is being called. In other scenarios, this might refer to different things (e.g execution context, or global/window if it's not set, or null if strict mode is also active). You can also specify the context when calling a function by using Function.prototype.call/apply/bind.

    • Custom User Avatar
      • wakoong
      • commented on "Number Of Occurrences" javascript solution
      • 8 years ago

      I assume 'this' refers to a specific array that the numberOfOccurence method is applied to. However, can someone explain how 'this' works in this code in more detail? Thanks!

    • Custom User Avatar
      • DeFrank
      • commented on "Number Of Occurrences" javascript solution
      • 9 years ago

      [3, 2, 3, 7, 7, 0].numberOfOccurances(3) // returns 2

    • Custom User Avatar
      • Kot Oz
      • commented on "Number Of Occurrences" javascript solution
      • 10 years ago

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

    • Custom User Avatar
      • IRus
      • commented on "Number Of Occurrences" javascript solution
      • 10 years ago

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

    • Custom User Avatar
      • chris_m
      • commented on "Number Of Occurrences" javascript solution
      • 10 years ago

      Can someone explain what's happening here?

    • Custom User Avatar
      • paool
      • commented on "The range() function" kata
      • 11 years ago

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

    • Custom User Avatar
      • MesoGosu
      • commented on "Get key/value pairs as arrays" javascript solution
      • 11 years ago

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

    • Custom User Avatar
      • paool
      • commented on "Get key/value pairs as arrays" javascript solution
      • 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...