es6/js snippets
Last active
September 28, 2017 20:51
-
-
Save ilio/29bb283a61e37be00ca2a35507963546 to your computer and use it in GitHub Desktop.
js/es6 snippets
This file contains hidden or 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
console.log('%c yellow text %c red text %c green text', 'color: yellow', 'color: red', 'color:green', 'regular text') |
This file contains hidden or 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
'1234567'.slice(0, -3) // => "1234" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment