DEV Community

Discussion on: Tell me a bug story

Collapse
 
ma7moudat profile image
Mahmoud Aldaas • Edited

I recently spent half a day trying to figure out why my code was going haywire inside a loop until my eyes saw that I was doing an assignment (=) instead of a comparison (===) in a control statement...

I was so upset with myself I almost cried, like "always use const for this shit, YOU KNOW THIS !§$%&/" xD