It's a pretty useful functionality, for example here is a Node.js code snippet to test the set up of a 3 second timing function.
const waitTime = 3000;
console.log(`setting a ${waitTime/1000} second delay`);
Explanation
- Declare wait time as 3000
- Using the backtick you can embed the result of the calculation of 'wait time' divided by 1000 in the same line with your chosen text.
- Further calling a timer function using the 'waitTime' constant will result in a 3 second delay, as calculated in the console.log argument.