// your code goes here// your code goes herevar str = '1000'var n = 10console.log(Number.parseInt(str))
Standard input is empty
1000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!