Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Template Literals #267

Merged
merged 2 commits into from
Dec 1, 2020
Merged

Commits on Dec 1, 2020

  1. Use Template Literals

    **Template literals are string templates that can include variables and expressions.** They can replace string concatenation and are often easier to read. Example: `` `Hello, ${name}!` ``
    
    This refactoring supports converting the first line of concatenated strings into template literals or shortened strings:
    * concatenated string literals will be combined, e.g. `"a" + "b"` will become `"ab"`
    * concatenated expressions and variables will be embedded in templates, e.g. `"a" + x + "b"` will become `` `a${x}b` ``
    * unnecesary escaping of quotes is removed when string are combined or transformed into template literals
    P42 committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    5a15cb9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    49916de View commit details
    Browse the repository at this point in the history