1. Home
  2. Javascript
  3. Parseint
#javascript

Converts a string to an integer.

var stringVal = "34"; // Returns "34"
parseInt(stringVal); // Returns 34
copy
Full Javascript cheatsheet
Sitemap Git repository