Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Friday, December 20, 2013

I don't know why this amazed me, but I just realized that you can do this: x&1 to find out if a number is odd in javascript (probably several other languages as well).