Pergunta de entrevista da empresa ChefSteps

Write a function that given a string number returns the int representation of it

Respostas da entrevista

Sigiloso

26 de nov. de 2014

Start with a sum of zero. For each character is the string multiply sum by 10 and then convert it to an int and add to sum.

Sigiloso

27 de abr. de 2016

Write a function? If it's JavaScript you can just use parseInt() and be done.