Skip to content

Instantly share code, notes, and snippets.

@tance77
Created May 11, 2018 22:27
Show Gist options
  • Save tance77/d54f3506657951eefd028f018c5f2918 to your computer and use it in GitHub Desktop.
Save tance77/d54f3506657951eefd028f018c5f2918 to your computer and use it in GitHub Desktop.
<body>
</body>
<script>
let blackMagic = true;
blackMagic && document.body.style.setProperty("background-color", "pink");
!blackMagic && document.body.style.setProperty("background-color", "green");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment