Looking to do output formatting (sprintf type functionality) in node.js, but before I write it myself I was wondering if there\'s something similar built-in (I\'ve trawled the d
console.log works fine.
console.log
console.log('%d hours', 4); // 4 hours console.log('The %2$s contains %1$d monkeys', 4, 'tree'); // The tree contains 4 monkeys