What does parseInt mean or do?


#1

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?
Thanks


Program works but calculation doesn't work for input numbers
#2

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

https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/parseInt

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.