Answer the question
In order to leave comments, you need to log in
How to organize a node js function execution queue?
Good afternoon. Faced a small problem with a problem. How to arrange a very fulfilling function. Now done like this
var starter_game = true;//пермит старта игры
function start_game(game, time){
if(starter_game = true){//проверка на то стартанут ли таймер
starter_game = false;//лочим
console.log('Работаем!');
//тут рабочий код
}
}
Answer the question
In order to leave comments, you need to log in
var starter_game = true; // пермит старта игры
function start_game(game, time){
//if(starter_game = true) { // проверка на то стартанут ли таймер (уверены?)
if(starter_game === true) { // А вот проверка на то стартанут ли таймер
starter_game = false; // лочим
console.log('Работаем!');
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question