Seedfist Developers Practice Questions
JS Practice Questions Go Back
Sr. No.CategoryQuestion
1. Basic Syntax and Variables Write a JavaScript program to display the current date and time.
2. Basic Syntax and Variables Create a JavaScript function to swap the values of two variables.
3. Control Structures Write a JavaScript program to check if a given number is a prime number.
4. Control Structures Create a JavaScript function to generate the first 10 Fibonacci numbers.
5. Functions in JS Write a JavaScript function to reverse a string.
6. Functions in JS Write a JavaScript function to calculate the factorial of a number.
7. Arrays in JavaScript Write a JavaScript script to find the largest and smallest elements in an array.
8. Arrays in JavaScript Create a JavaScript function to merge two arrays and remove duplicate values.
9. Strings in JavaScript Write a JavaScript script to count the number of vowels in a given string.
10. Strings in JavaScript Create a JavaScript function to check if a string is a palindrome.
11. DOM Manipulation Write a JavaScript function to change the background color of a webpage when a button is clicked.
12. DOM Manipulation Create a JavaScript function to add a new list item to an unordered list in the HTML.
13. Event Handling Write a JavaScript function to display an alert box when a button is clicked.
14. Event Handling Create a JavaScript function to validate a form input (e.g., check if the email field contains a valid email address).
No Such Practice Questions Found!