Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRawr committed Jan 9, 2016
1 parent 2e3d797 commit c5407e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ As of ES6, JS now has template strings as an alternative to the classic end quot

Ex:
Normal string
```
```javascript
var firstName = 'Jake';
var lastName = 'Rawr';
console.log('My name is ' + firstName + ' ' + lastName);
// My name is Jake Rawr
```
Template String
```
```javascript
var firstName = 'Jake';
var lastName = 'Rawr';
console.log(`My name is ${firstName} ${lastName}`);
Expand All @@ -42,10 +42,10 @@ console.log(`My name is ${firstName} ${lastName}`);

You can do Multi-line strings without `\n` and simple logic (ie 2+3) inside `${}` in Template String.

You are also able to to modify the output of template strings using a function; they are called Tagged template strings.
(see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings) for example usages of tagged template strings.
You are also able to to modify the output of template strings using a function; they are called [Tagged template strings]
(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings) for example usages of tagged template strings.

You may also want to read https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2/ to understand template strings more
You may also want to [read](https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2) to understand template strings more

## #08 - Converting a Node List to an Array

Expand Down

0 comments on commit c5407e1

Please sign in to comment.