Reputation: 75
Here's snippet which I been reference in book:
`photos/${Date.now()}.jpg`
I got curly brackets used to 'out of string', however mean of $ ...
ps: sincerely I also not want to ask question but I not know what I looking for
Upvotes: 0
Views: 54
Reputation: 18975
It is interpolation (template literals)
It will equal to "photos" + Date.now() + ".jpg"
Upvotes: 2