Pergunta de entrevista da empresa Newton School

1. Convert String to number. 2. Get integer and decimal part of string. 3. What’s an alternate way to convert string to number besides Number() and get the integer part only? 4. How does parseInt() work internally? 5. What are the arguments it takes?

Resposta da entrevista

Sigiloso

30 de jul. de 2025

1. Number("12.35") 2. const [integert, decimal] = "12.35".split(".") 3. parseInt 4. Did not know what internal implementation it follows 5. Did not know the second argument type