There is a mobile optimized version of this page, view AMP Version. parseInt() is an incredibly useful function which is available in some form in all programming languages, however in JavaScript there is one slightly annoying difference… Unlike in other languages which either throw an error or just assume 0 when a string cannot be […]