mirror of
https://github.com/kettanaito/naming-cheatsheet.git
synced 2025-08-13 16:37:07 +02:00
refactor: template literal to normal string concatenation
This commit is contained in:
@ -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)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user