parseInt()
Previous Top Next
parseInt( value )
Converts the value passed to an integer value.
Parameters
value
|
the string value to be converted
|
Usage
function main() {
var myVar;
...
...
//convert the string representation into an integer
myVar = parseInt( "5" );
}