APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Javascript Bit Twiddler

Download the Javascript Bit Twiddler (shift click to force download on most browsers).

This is a Javascript program. If you don't have Javascript enabled, or if your browser doesn't support Javascript, you won't see anything but this message. If you have a really old browser, you'll see a bunch of junk.

This is a Bit Twiddler. Click the bits at the top of the page on or off to see the values. Or type a value into the boxes. See also Java Bits II

There is apparently a bug with some browsers where the Hex box will display ":" where it should be showing "a". I corrected for that here, but other browsers may have other bugs. Javascript bugs in older browsers can be very annoying.

There are interesting patterns to binary numbers. For example, try setting every other bit "on". Or try typing "EEEE" or "9999" into the Hex box.

Javascript is not Java. Javascript is a scripting language developed by Netscape, and really has nothing to do with Java. Javascript isn't cgi-bin programming, either. The script is actually in the HTML page. You can't see it if you "View Source"; all you'd see is the HTML tags and text that the Javascript program produced. If you download the page, you can see what is really going on.

Got something to add? Send me email.

Increase ad revenue 50-250% with Ezoic

More Articles by

Find me on Google+

© Tony Lawrence

Kerio Samepage

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

It's hard to study much history and not dislike religion - (Tony Lawrence)

Perl is designed to give you several ways to do anything, so consider picking the most readable one. (Larry Wall)

This post tagged: