DEV Community

loading...

Discussion on: Those silly mistakes we all make

Collapse
carsturdy profile image
Carson Sturtevant

I can't tell you how many times I've done something like:

if(a = b) {
// do something
}

After some time I finally realize that i didn't put a second =.

Collapse
philnash profile image
Phil Nash Author

Oh, I've done this before. It's such a pain to spot a missing =!