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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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