3 ms·
I don't write alot of blog posts. Appreciate any feedback you might have :)
by ewendel 7y ago
I don't write alot of blog posts. Appreciate any feedback you might have :)
- getcrunk 7y agoIt’s great my guy! Love the recap at the end
- Waterluvian 7y agoI love it. But I think it cheats a tiny bit by getting a word that requires only characters from "false". It means you're demonstrating the same trick four times. Maybe you could do a kind of proof: 1. This is how you get any character 2. This is how you call eval() 3. QED
- herohamp 7y agoYeah the ability to get any character would really show more of how this works
- trehalose 7y agoPlease run simple code to verify accuracy before publishing it. The unary plus operator coerces undefined to NaN, not to zero as your article states. The unary plus operator coerces NaN to NaN, not to zero as your article states. (Remember that NaN is already a number, despite its name.) If you need to coerce any falsy value to 0, the simplest way is to use bitwise operators. If you want to do it the six character way, I guess use Math.imul