Leetcode Number To String Javascript Methods Syntax