0

I am taking course for JS and while I couldn't figure out how to keep track a function once called or not even though I googled it. So I looked at the code written by instructor and I tried to understand but I can't figure out what the exclamation mark does in the if statement.

 var started = false;
$(document).keydown(function(){
  if (!started) {
      $("#level-title").text("Level " + levelNumber);
      nextSequence();
      started = true;
  }
});
halfer
  • 19,824
  • 17
  • 99
  • 186
Umut Can
  • 17
  • 1

0 Answers0