mirror of
https://github.com/kettanaito/naming-cheatsheet.git
synced 2025-08-15 01:02:32 +02:00
Merge pull request #7 from abhijit-hota/master
Refactor: Change template literal to normal string concatenation
This commit is contained in:
@ -241,7 +241,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)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user