Name: Ayitey-Adjin Karl This is a javascript program that allows you to input any numbers of your choice and returns a specific result to determine if it is even or odd. The program is divided into three tasks and each task performs its own function.
firstly, a function is called and it returns an array.. It uses a prompt to ask users to input any numbers of their choice. An even number is squared and an odd number is tripled. The function uses 'readlineSync' to allow the program to run in the terminal
In the second task, the user is prompted to enter a desired number of strings. A string that corresponds to an even number is made to appear in uppercases whereas that of an odd number will appear in lowercases: all based on the array of numbers already requested.
The third task creates a a new file and imports the function in the second task to be used. It returns the values of all the functions in the previous file as an array of objects. It groups each element of the array based on the original string input by the user, the modified string and automatically assigns an ID number to each of them.