Last active
September 14, 2019 23:13
-
-
Save paigen11/f7bdaad8dc683c353b85738d32b0ffb1 to your computer and use it in GitHub Desktop.
Template literal back-ticks basic example
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
/* your basic JavaScript strings, but with back-ticks. | |
notice the lack of escape characters needed for things | |
like single quotes, double quotes, and apostrophes | |
when back-ticks are employed */ | |
const fooString = `A string called 'fooString'`; | |
const barString = `Another string named "barString"`; | |
const bazString = `Without fooString and barString, you can't have bazString, right?`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment