Closed khalilsarabey closed 6 years ago
Thanks @khalilsarabey! We already have that use case here: How to interpolate in javascript
Feel free to re-open if you've got further suggestions on this particular use case! Cheers
That's cool @jadjoubran ! I didn't check the entire list on the site :) I think you can take it a step further by providing an expression interpolation example like:
var calculate = '1+1 = ${ 1 + 1 }';
console.log(calculate); //1+1 = 2
Awesome idea, will push this today! 😄
Updated use case is live 🎬 https://codetogo.io/how-to-interpolate-in-javascript/