Pregunta de entrevista de Pillir

How to reverse and print the string/number? Ex: 1234.

Respuesta de la entrevista

Anónimo

24 mar 2022

Split the number and convert it as array. Then loop one by one and push the element in reverse order. Then join the elements and print.