JavaScript Exercises, Practice Questions and Solutions Last Updated : 24 Sep, 2025 Comments Improve Suggest changes Like Article Like Report 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 QuizzesGet 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.BasicsVariables and Data TypesOperatorsControl FlowFunctionsDOM and BOMEvent HandlingClasses and InheritanceModern JavaScript (ES6+)Advanced JavaScriptAsynchronous JavaScriptError Handling and DebuggingAfter 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 PracticeIn 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. NumbersAdd float numbersConvert negative number to positiveFind quotient and remainderFlatten an ArrayCheck two numbers are approximately equal Quiz: JavaScript Number Quiz2. StringConvert string to integer without using parseInt() functionGenerate all combinations of a stringSplit multiline string into an array of linesCheck whether a string is palindrome or notFind unique characters of a stringSolve DSA Problem:Parenthesis CheckerAnagramReverse WordsNon Repeating Character Quiz: : JavaScript String Quiz3. ArrayFilter values from an arrayRemove specific elements from the leftConvert 2D array to CSV stringCount number of data types in an ArrayRemove falsy values from an array Solve DSA Problem: Second Largest Element in an ArrayFrequencies in a Limited ArrayKadane's AlgorithmRotate Array Quiz: JavaScript Array Quiz4. ObjectsCheck if a value is object-likeConvert 2D array into an objectIterate over a JavaScript objectCreate an object from two arraysGet the index of an object by its property Quiz: JavaScript Object Quiz5. FunctionsIterate over a callback n timesMake a word count in textareaFind the caller functionOverride a JavaScript functionPassing a function as a parameter Quiz: JavaScript Function Quiz6. RecursionCount pairs up to N having sum equal to their XORSort the array using slow sortRepresent a number as sum of perfect squaresSum of subsets nearest to K possible from two given arraysCount substrings having frequency of a characterSolve DSA Problem: Power Of NumbersPermutations of a StringPrint GFG n timesSubset Sums Quiz: JavaScript Recursion Quiz7. Regular ExpressionEmail ValidationNumber ValidationPassword ValidationURL ValidationForm Validation Quiz: JavaScript Regular Expression Quiz8. JSON Expression Read JSON File Using JSParse JSON Data in JSConvert CSV to JSON file and vice-versaSend JSON object to a serverDeserializing a JSON into a JavaScript object Quiz: JavaScript Json Expression QuizFor More questions follow the article-JavaScript Programming ExamplesJavaScript Coding Questions and AnswersJavaScript ProgramsJavaScript ProjectsThese are the mini projects designed specially for the Machine Coding Round in JavaScriptCounter ApplicationPrime Number CheckerShow and Hide PasswordPalindrome Checker AppJavaScript CarouselEmail Validator AppUnicode Character ValueRandom Number GeneratorRandom Password GeneratorApart from these projects you can also look into other projects- Top JavaScript ProjectsPractice QuestionsJavaScript Practice: Quiz 1JavaScript Practice: Quiz 2JavaScript Practice: Quiz 3 Comment J jatin_sharma Follow Improve J jatin_sharma Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Questions WebTech - Exercises JavaScript-Quiz +1 More Explore JavaScript BasicsIntroduction to JavaScript4 min readVariables and Datatypes in JavaScript6 min readJavaScript Operators5 min readControl Statements in JavaScript4 min readArray & StringJavaScript Arrays7 min readJavaScript Array Methods7 min readJavaScript Strings5 min readJavaScript String Methods9 min readFunction & ObjectFunctions in JavaScript5 min readJavaScript Function Expression3 min readFunction Overloading in JavaScript4 min readObjects in JavaScript4 min readJavaScript Object Constructors4 min readOOPObject Oriented Programming in JavaScript3 min readClasses and Objects in JavaScript4 min readWhat Are Access Modifiers In JavaScript ?5 min readJavaScript Constructor Method7 min readAsynchronous JavaScriptAsynchronous JavaScript2 min readJavaScript Callbacks4 min readJavaScript Promise4 min readEvent Loop in JavaScript4 min readAsync and Await in JavaScript2 min readException HandlingJavascript Error and Exceptional Handling6 min readJavaScript Errors Throw and Try to Catch2 min readHow to create custom errors in JavaScript ?2 min readJavaScript TypeError - Invalid Array.prototype.sort argument1 min readDOMHTML DOM (Document Object Model)9 min readHow to select DOM Elements in JavaScript ?3 min readJavaScript Custom Events4 min readJavaScript addEventListener() with Examples9 min readAdvanced TopicsClosure in JavaScript4 min readJavaScript Hoisting6 min readScope of Variables in JavaScript3 min readJavaScript Higher Order Functions7 min readDebugging in JavaScript4 min read Like