code: function convertOnes(num) {
    if (str(num).length > 1) {
      throw new Error("Must have at most 1 digit");
    }
  
    num = int(num);
    return mapOnes[num];
  }
docs: Convert ones number to word. ---------- Parameters ---------- num: int Single digit integer number