Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Rarlig
    3. Posts
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Posts made by Rarlig

    • RE: Calling a second function from a function.

      I think the problem is inner is not in the scope where you call it. If you change the above exaple to module.exports.inner('value') it should work.

      Normally, you would use a class pattern and call this.inner, or define the inner function outside module.exports, so that it is in scope of the function inside.

      posted in Help
      Rarlig