Comment

Comment by perlgeek

I find some of them horribly obscure

     +new Date() // 1259359833574
Oh come on, magic constants? How do you check if that's the right number?

    function PrefixInteger(num, length) {

        return (num / Math.pow(10, length)).toFixed(length).substr(2);
     }
Is there no sprintf in Javascript? Or did I misunderstand what the function does?
parent perlgeek 15 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton