const fn = (strs, ...nums) => { console.log(strs, nums) let result = ''; let i = 0; while (i < nums.length) { result += nums[i++]; if (i < strs.length) { result += strs[i]; } } console.log(result) return result; }; const [a, b, c] = [2, 2, 3]; //fn`'a' + ${a} + ${b} + ${c}= ${a + b + c} + 'n'` fn`${a} + ${b} + ${c}= ${a + b + c}`;