Edit & Run »
The global JavaScript function parseInt() converts strings to numbers: