How to convert a string to an integer in JavaScript? How to convert a string to an integer in JavaScript? javascript javascript