Here are some JavaScript coding interview questions along with their solutions:
1. Reverse a String:
Question: Write a function to reverse a string.
2. Find the Factorial of a Number:
Question: Write a function to calculate the factorial of a given number.
3.Check for Palindrome:
Question: Write a function to check if a string is a palindrome.
4. Find the Longest Word:
Question: Write a function to find the longest word in a string.
5. Fibonacci Series:
Question: Write a function to generate Fibonacci series up to a given number of terms.
0 Comments
Post a Comment