title: What is a flag variable?
body: <p>Recently I came across flag variables, but I have no idea what they do.</p>
  
  <p>I am little unsure about when to use a flag variable and how to go about it.</p>
  
  <p>I Googled it but there weren't any specific examples related to my context (of JavaScript).</p>