vladimirjv
4/17/2019 - 2:54 AM

tagged templates

tagged templates

function element(strings,name:string,lastname:string) {
    return `<p>${name} ${lastname}</p>`
}
var myname= "vladimir";
var lastname = "juarez";
console.log(element`${myname}${lastname}`)