TGViewer
JavaScript JavaScript @javascript · 31K subscribers
Post #1696 6.5K
CHALLENGE ❓


function tag(strings, ...values) {
return strings[0] + values[0] * 2 + strings[1] + values[1] + strings[2];
}

const num1 = 5;
const num2 = 10;

const result = tag`Double ${num1} and add ${num2}!`;

console.log(result);
  • 🤔 15
  • 👍 8
  • ❤ 3
  • 🔥 3
More from @javascript
  1. Oct 15, 2026Post #3561
  2. Oct 15, 2026CHALLENGE class EventBus { #listeners = new Map(); on(event, cb) { if (!this.#listeners.ha…
  3. Oct 14, 2026💻 Deno is Joining Cloudflare (But…) Maybe David Bushell saw the writing on the wall, as t…
  4. Oct 14, 2026Post #3558
  5. Oct 14, 2026CHALLENGE const obj = { value: 42, getValue: function() { return this.value; } }; const un…
  6. Oct 13, 2026Post #3556
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →