Question d’entretien chez ChefSteps

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

Réponses aux questions d'entretien

Utilisateur anonyme

26 nov. 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.

Utilisateur anonyme

27 avr. 2016

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