Basic Javascript (106/111) | Use the parseInt Function | freeCodeCamp

Published: 14 December 2020
on channel: Stral Tech
499
5

Basic Javascript (106/111) | Use the parseInt Function | freeCodeCamp

Full playlist 👉    • Basic JavaScript (1/111) | Comment Yo...  

"The parseInt() function parses a string and returns an integer. Here's an example:

var a = parseInt("007");

The above function converts the string "007" to an integer 7. If the first character in the string can't be converted into a number, then it returns NaN.

Use parseInt() in the convertToInteger function so it converts the input string str into an integer, and returns it."

https://www.freecodecamp.org/learn/ja...


Watch video Basic Javascript (106/111) | Use the parseInt Function | freeCodeCamp online without registration, duration hours minute second in high quality. This video was added by user Stral Tech 14 December 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 499 once and liked it 5 people.