Last active
August 29, 2015 14:10
-
-
Save SokratisVidros/cd4ed6299487932407eb to your computer and use it in GitHub Desktop.
Juicy javascript part 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Juicy javascript part 1 | |
* | |
* ~ Bitwise NOT operator. Any number x yields -(x + 1). For example, ~5 yields -6. | |
* | |
*/ | |
[].forEach.call($$("*"),function(a){ | |
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16) | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment