I am new on Javascript. I was asked to write a program that prompts the user to enter a number between 0-9. The program should log the number in words.
const input = require('readline-sync');
let num1 = input.question("Enter a number between 0-9: ");
let a = num1.toString()
console.log(num1.toString)
What am I doing wrong ?