Questions On Js
Questions On Js
Here are some JavaScript questions that you can use to write programs
based on functions:
Reverse a String:
Write a function that takes a string as input and returns the string reversed.
Factorial Calculation:
Create a function to calculate the factorial of a given number.
Palindrome Checker:
Implement a function that checks whether a given word or phrase is a palindrome.
FizzBuzz:
Implement a function that prints the numbers from 1 to 100. But for multiples of
three, print "Fizz" instead of the number, and for the multiples of five, print
"Buzz." For numbers that are multiples of both three and five, print "FizzBuzz."
Count Vowels:
Write a function that counts the number of vowels in a given string.
Remove Duplicates:
Write a function that removes duplicate elements from an array.
Feel free to use these questions to practice your JavaScript programming skills! If
you have any specific requirements or if you'd like more questions, let me know.