Navigation

    forum

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

    NightlyDev

    @NightlyDev

    1
    Posts
    585
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    NightlyDev Follow

    Posts made by NightlyDev

    • Data presists between ticks?

      The way I understood it data is not supposed to presist between ticks, but it seems to do just that for a short amount of time.

      Example code:

      let debug = {
          counter: 0,
          run () {
              console.log(debug.counter);
              debug.counter++;
          },
      };

      module.exports = debug;

      Running debug.run() in the main loop gives me 0, then 1, then 2, then 3 and so on.

      Why is this happening?

      posted in Technical Issues and Bugs
      NightlyDev