function message(literals, ...values) { console.log(literals) console.log(values) let res = '' for(let i = 0; i < literals.length; i++) { res += literals[i] res += values[i] || '' } console.log(res) } let a = "Hi" let b = "zsx" message `${a}, I am ${b}`