refactor: template literal to normal string concatenation

This commit is contained in:
Abhijit Hota
2021-01-16 20:43:36 +05:30
committed by GitHub
parent 96dea1d185
commit 423f513138

View File

@ -210,7 +210,7 @@ Creates new data from the existing one. Mostly applicable to strings, objects, o
```js ```js
function composePageUrl(pageName, pageId) { function composePageUrl(pageName, pageId) {
return `${pageName.toLowerCase()}-${pageId}` return (pageName.toLowerCase() + '-' + pageId)
} }
``` ```