'How to nicely add a text to a string without plus sing, with shortcut?

I have a bit silly quesion. But i was wondering how to nicely and simply add text without having to constently using plus sign in string ?

date.getFullYear()+'/'+(date.getMonth()+1)+'/'+date.getDate()

Because if i use something like this, than i will have to write 4 times plus sign. Is there any shortcuts in JS for that. I tried to find something like this. {date.getFullYear(),date.getMonth()+1,date.getDate() '+'}



Solution 1:[1]

I don't know if it's better but at least there is no plus sign:

`${date.getFullYear()}/${date.getMonth()+1}/${date.getDate()}`

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fred