jskatas.org Continuously Learn JavaScript. Your Way.

Global Object API: parseInt() in depth

parseInt() converts a given value to a string and then tries to make an integer out of it.

Donate to NGO Julenka. Support Ukranians in need. Julenka is an NGO which my brother founded in 2011 to support Ukranian families and kids in need.

parseInt() parses a string and returns an integer.

  • ignores any surrounding white spaces for a given string