What does parseInt mean or do?


I'm currently working on this project, I did not see in the instructions to place parseInt variable. What does parseInt mean or do? And why is it being used with return?

Program works but calculation doesn't work for input numbers

A quick search will bring up the MDN site, which has the complete documentation for JS.


It is a project, not a lesson. The instructions are a little more loose. How else can we convert a string to a number? prompt() returns a string and we cannot do math on it.