Readymade template engine using the function constructor trick in JavaScript

One of my favorite features in JavaScript is the backtick string interpolation technique: let name = " Prahlad " ; let greeting = `Hello, ${ name } ` ; The backtick string can be extraordinarily long and quite versatile, folks often use it like a mini-template engine. And what’s more, it’s built right into the core JS language and you get all the goodies without installing an extra package like…