Bug in the JavaScript
. | C G F C F C D7 G C G F C F G C G |
It’s nine-o-clock on a Saturday, | C G F C |
You should be out having fun, | F C D7 G |
But there’s one bug left in the next release, | C G F C |
And you’re not going out ‘till it’s done, | F G C G |
You’ve checked all the database indexes, | C G F C |
You’ve tested your API hooks, | F C D7 G |
And you’re starting to think, that you might need that drink | C G F C |
‘Cos there’s only one place left to look… | F G C |
Da da, da di da | a D7 |
Da da, da di da | a D7 |
Da da | G F C G7 |
There must be a bug in the JavaScript, | C G F C |
The bug’s in the single page app, | F C D7 G |
Because everything else was built properly, | C G F C |
But the front end’s a pile of crap | F G C G |
C G F C F G C G | |
Now null is a reference to nothing, | C G F C |
Don’t mix it up with undefined, | F C D7 G |
And there’s zero and NaN, and Infinity, man, | C G F C |
Just remember which ones can be signed, | F G C G |
And you think that you’re working with integers, | C G F C |
When you’re really in floating point hell, | F C D7 G |
And your objects are hashes, but when your code crashes, | C G F C |
You’ll find they were functions as well, | F G C |
Da da, da di da | a D7 |
Da da, da di da | a D7 |
Da da | G F C G7 |
It was never intended to do all this, | C G F C |
They say it was built in ten days, | F C D7 G |
But it’s out of the bottle, it’s going full throttle, | C G F C |
We’ve all caught the JavaScript craze, | F G C G |
C G F C F G C G | |
Well we use it for code that runs everywhere, | C G F C |
From the cloud to your mobile phone, | F C D7 G |
But we’re sharing a string padding library, | C G F C |
‘Cos it’s better than writing our own | F G C G |
There must be a bug in the JavaScript, | C G F C |
The bug’s in the single page app, | F C D7 G |
Because everything else was built properly, | C G F C |
But the front end’s a pile of crap | F G C G |
C G F C F G C G | |
Now JavaScript’s not a bad language, | C G F C |
Though it’s frequently misunderstood, | F C D7 G |
But before you see what you can use it for, | C G F C |
Please stop to think whether you should, | F G C G |
Because just about everything’s true here, | C G F C |
It’s all part of the language design | F C D7 G |
Except zero, blank strings, the array of no things, | C G F C |
And the end of 1969 | F G C |
Da da, da di da | a D7 |
Da da, da di da | a D7 |
Da da | G F C G7 |
There must be a bug in the JavaScript, | C G F C |
The bug’s in the single page app, | F C D7 G |
Because everything else was built properly, | C G F C |
But the front end’s a pile of crap | F G C G |
C G F C F G C G |