npm install -g ts-node-dev
ts-node-dev --respawn --transpile-only file name
- Find the largest word in a given string
- Write a function that takes a string as input and returns a new string with the first letter of each word capitalized and no spaces only First latter add #
- Write a function that takes a string and a character and returns the number of occurrences of the character in the string.
- Write a function that takes a string as input and returns the string reversed is Palindrome.
- Write a function to find the maximum of an array of numbers.
- Factorial of a number using recursion
- write a function that takes an array of numbers and returns the average of the numbers
- Write a function that takes two arrays as arguments and returns true or false based on whether the two arrays are equal or not.
- Write a function that takes a number and returns the sum of its digits.
- Write a function that removes duplicates from an array of numbers
- Write a function that takes a string as input and returns the number of vowels in the string.
- Write a JavaScript program to check if a given positive number is a power of two.
- Write a function that takes an array of numbers and returns the sum of the elements of the array.