npm install
Create a calculator that takes two numbers and an operator (+, -, *, /) and returns the result of the operation.
Write a function that checks whether a number is prime or not. Then create a program that prints the first 10 prime numbers.
Write a function to calculate the factorial of a number. Next, create a program that allows the user to enter a number and displays the corresponding factorial.
Create a function that checks whether a word is a palindrome (that is, whether it reads the same backwards and forwards). The program must ask the user for a word and inform whether or not it is a palindrome.
Create a program that receives a number from the user and displays the table of that number, from 1 to 10.
Create a function that counts the number of vowels in a string. The program should ask the user for a sentence and display how many vowels it has.
Create a program that takes a student's grades in three different subjects and calculates the average of the grades. Then display the calculated average.
Create a function that calculates the final value of an investment based on initial capital, interest rate, and investment time (in months). The program must prompt the user for these values and display the final value.
npm run ex1