3 ms·
What if we had a great standard library in JavaScript?
- tantalor 11y ago> utter lack of certain useful functions (for example a function to format numbers in strings, like printf) Huh? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... Example, > (123).toString(16) > "7b"
- tantalor 11y agoAlso, if you really want printf, https://developer.mozilla.org/en-US/docs/Web/API/console#Using_string_substitutions https://developer.mozilla.org/en-US/docs/Web/API/console#Usi... Example, > console.log("test %s test", "hello") > test hello test