Basic Javascript (107/111) | Use the parseInt Function with a Radix | freeCodeCamp

Publicado em: 15 Dezembro 2020
no canal de: Stral Tech
584
3

Basic Javascript (107/111) | Use the parseInt Function with a Radix | freeCodeCamp

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

"The parseInt() function parses a string and returns an integer. It takes a second argument for the radix, which specifies the base of the number in the string. The radix can be an integer between 2 and 36.

The function call looks like:

parseInt(string, radix);

And here's an example:

var a = parseInt("11", 2);

The radix variable says that "11" is in the binary system, or base 2. This example converts the string "11" to an integer 3.

Use parseInt() in the convertToInteger function so it converts a binary number to an integer and returns it."

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


Nesta página do site você pode assistir ao vídeo on-line Basic Javascript (107/111) | Use the parseInt Function with a Radix | freeCodeCamp duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Stral Tech 15 Dezembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 584 vezes e gostou 3 espectadores. Boa visualização!