01 / 04
You do not have to park it in a variable
You have been writing const t = add(3, 5); console.log(t);, but add(3, 5) is a value in its own right. You can use it without going through a variable.
Picture the place where you wrote add(3, 5) being replaced by 8. Anywhere you could write a number or a string, you can write this.
function add(a, b) { return a + b;}console.log(add(3, 5) + 100);console.log(`total ${add(3, 5)} yen`);Result
108 total 8 yen