Leetcode Number To String Javascript Methods And Functions