JavaScript Exercises, Practice Questions and Solutions
JavaScript Exercise covers interactive quizzes, tracks progress, and enhances coding skills with our engaging portal. Ideal for beginners and experienced developers, Level up your JavaScript proficiency at your own pace. Start coding now!
- Learn step by step with topic-wise quizzes and exercises.
- Whether you’re a beginner or experienced, practice at your own pace and improve your coding skills.
JavaScript Quizzes
Get ready to challenge yourself with our JavaScript quizzes! Designed for both beginners and experienced developers, these quizzes need no signup just pick a topic, start solving, and level up your coding game.
- Basics
- Variables and Data Types
- Operators
- Control Flow
- Functions
- DOM and BOM
- Event Handling
- Classes and Inheritance
- Modern JavaScript (ES6+)
- Advanced JavaScript
- Asynchronous JavaScript
- Error Handling and Debugging
After completing the quizzes, let’s move on to JavaScript Practice Exercises to strengthen your concepts, and you’ll also find topic-wise quizzes along the way to test your skills and boost learning.
JavaScript Topics to Practice
In this section, we’ll divide into different JavaScript topics like strings, arrays, numbers, objects, and more. Each topic comes with hands-on exercises and quizzes to help you practice concepts, test your knowledge, and build problem-solving confidence step by step.
1. Numbers
- Add float numbers
- Convert negative number to positive
- Find quotient and remainder
- Flatten an Array
- Check two numbers are approximately equal
- Quiz: JavaScript Number Quiz
2. String
- Convert string to integer without using parseInt() function
- Generate all combinations of a string
- Split multiline string into an array of lines
- Check whether a string is palindrome or not
- Find unique characters of a string
Solve DSA Problem:
3. Array
- Filter values from an array
- Remove specific elements from the left
- Convert 2D array to CSV string
- Count number of data types in an Array
- Remove falsy values from an array
Solve DSA Problem:
- Second Largest Element in an Array
- Frequencies in a Limited Array
- Kadane's Algorithm
- Rotate Array
- Quiz: JavaScript Array Quiz
4. Objects
- Check if a value is object-like
- Convert 2D array into an object
- Iterate over a JavaScript object
- Create an object from two arrays
- Get the index of an object by its property
- Quiz: JavaScript Object Quiz
5. Functions
- Iterate over a callback n times
- Make a word count in textarea
- Find the caller function
- Override a JavaScript function
- Passing a function as a parameter
- Quiz: JavaScript Function Quiz
6. Recursion
- Count pairs up to N having sum equal to their XOR
- Sort the array using slow sort
- Represent a number as sum of perfect squares
- Sum of subsets nearest to K possible from two given arrays
- Count substrings having frequency of a character
Solve DSA Problem:
- Power Of Numbers
- Permutations of a String
- Print GFG n times
- Subset Sums
- Quiz: JavaScript Recursion Quiz
7. Regular Expression
- Email Validation
- Number Validation
- Password Validation
- URL Validation
- Form Validation
- Quiz: JavaScript Regular Expression Quiz
8. JSON Expression
- Read JSON File Using JS
- Parse JSON Data in JS
- Convert CSV to JSON file and vice-versa
- Send JSON object to a server
- Deserializing a JSON into a JavaScript object
- Quiz: JavaScript Json Expression Quiz
For More questions follow the article-
JavaScript Projects
These are the mini projects designed specially for the Machine Coding Round in JavaScript
- Counter Application
- Prime Number Checker
- Show and Hide Password
- Palindrome Checker App
- JavaScript Carousel
- Email Validator App
- Unicode Character Value
- Random Number Generator
- Random Password Generator
Apart from these projects you can also look into other projects- Top JavaScript Projects