Gistrec

Mistake - global member o.o

Aug 9th, 2020 (edited)
181
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

app.js

require('./second');
require('./first');

second.js:

run = async function() {
    console.log('second::run') ;

    setTimeout(run, 1000);
}

setTimeout(run, 1000);

first.js

run = async function()
    console.log('first::run');
}
Comments
  • User was banned
Add Comment
Please, Sign In to add comment