We're talking about JavaScript, so Scheme is a better example than C. At the level of abstraction Javascript deals in, bit twiddling like this should not be necessary. Even using all caps constants just feels dirty. And JavaScript isn't even any good at bit twiddling, as it doesn't use native machine integers.