Hi, while the conversion hacks are interesting, PLEASE note in bold (as with Math.*) that proper readable methods should be used. It's really cryptic in the real life code to decode these tricks because people think this is the only and proper way instead of these:
constisFalse=Boolean(0);constnumeric=String(29);constinteger=Number("36");// or better parseInt("36", 10)
Hi, while the conversion hacks are interesting, PLEASE note in bold (as with
Math.*
) that proper readable methods should be used. It's really cryptic in the real life code to decode these tricks because people think this is the only and proper way instead of these:nice corrections, thank you.