Recently I came across flag variables, but I have no idea what they do.
I am little unsure about when to use a flag variable and how to go about it.
I Googled it but there weren't any specific examples related to my context (of JavaScript).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…