Skip to content

Instantly share code, notes, and snippets.

@paigen11
Last active September 14, 2019 23:13
Show Gist options
  • Save paigen11/f7bdaad8dc683c353b85738d32b0ffb1 to your computer and use it in GitHub Desktop.
Save paigen11/f7bdaad8dc683c353b85738d32b0ffb1 to your computer and use it in GitHub Desktop.
Template literal back-ticks basic example
/* 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