Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

     var message = util.format('oh hai %s!', name);
I thought it was a javascript quality guide ? there is no util.format in ES5 spec.


"Usually you'll be a happier JavaScript developer if you hack together a parameter-replacing method like util.format in Node." + "You could implement something similar using the piece of code below."

I don't think you can ask more than this, everything is clearly laid out...


It's a Node.js example




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: