DEV Community

Discussion on: Adding Variables into Strings using JavaScript's Template Literals

Collapse
 
machineno15 profile image
Tanvir Shaikh

those {...} are not only for variables but you can also put any valid expression into it. you can even call methods if they are returning any valid string data.