Skip to content

Commit

Permalink
Update README.md (mbeaudru#116)
Browse files Browse the repository at this point in the history
Why if you give an ES6 example just not to use literal templates, which are from ES6 too?
  • Loading branch information
tourniquet authored and mbeaudru committed May 23, 2018
1 parent e4ae20e commit d3dc7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ class Person {
}

stringSentence() {
return "Hello, my name is " + this.name + " and I'm " + this.age;
return `Hello, my name is ${this.name} and I am ${this.age}`;
}
}

Expand Down

0 comments on commit d3dc7dc

Please sign in to comment.