For a given window width, how wide would the IE 9 download bar be?
I usually call this method with window.innerWidth
as the argument.
See the 140byt.es site for a showcase of entries (built itself using 140-byte entries!), and follow @140bytes on Twitter.
To learn about byte-saving hacks for your own code, or to contribute what you've learned, head to the wiki.
140byt.es is brought to you by Jed Schmidt, with help from Alex Kloss. It was inspired by work from Thomas Fuchs and Dustin Diaz.
Only use the upper limits and the
condition ? true : false
shorthand to golf that down to 86 bytes: