In this lesson you will learn how to write an interview coding task which challenges you with reversing the integer and keeping the original sign intact. You will use different methods like toString
, reverse
, split
and join
to achieve the needed functionality using functional programming approach.
good video, just wanted to call out that parseInt should likely be called with the radix parameter to avoid issues.
e.g. parseInt(n, 10)
Good point👍🏼
Good point👍🏼