r/javascript • • Sep 18 '22

New Strings Method in ES6 JavaScript

https://techynidhi.hashnode.dev/new-strings-method-in-es6-javascript
0 Upvotes

17 comments sorted by

View all comments

8

u/yo-chill Sep 18 '22

Why use

 `${name}`.method()

Instead of just

 name.method()

1

u/__Disaster497 Sep 22 '22

Thanks for the suggestion, I will keep in mind next time 😁🤝