Introduction to JavaScript
Review page responsibilities, interaction timing, and the environment a proposed solution needs.
5 questions
Take quizCritical thinking for an AI world
Work with values, objects, the DOM, events, and the browser APIs behind interactive pages.
Choose from 107 quizzes below. Practice the concepts you need to judge a solution, recognize faulty assumptions, and find errors in logic or code. Every answer includes an explanation and a link back to the relevant tutorial.
Review page responsibilities, interaction timing, and the environment a proposed solution needs.
5 questions
Take quizReview page structure, accessible interaction, event targets, and setup dependencies.
10 questions
Take quizJudge how changing values are stored, when data is ready, and what const does and does not protect.
10 questions
Take quizReview decision rules, boundary coverage, branch priority, and the behavior a refactor must preserve.
12 questions
Take quizReview input and return contracts, shared calculations, and when a function should run.
11 questions
Take quizReview termination, side-effect order, loop boundaries, and changes to repeated work.
12 questions
Take quizUse comments to explain intent, temporarily disable code, and keep documentation consistent with behavior.
7 questions
Take quizReview scheduling, stale callbacks, cleanup, and assumptions about timing and rendering.
8 questions
Take quizReview state ownership, scope boundaries, and initialization before accepting a change.
10 questions
Take quizReview callback ownership, retained state, and whether closures preserve the intended behavior.
8 questions
Take quizReview shared-code contracts, deployment paths, loading dependencies, and cache freshness.
9 questions
Take quizLog useful state, distinguish messages from thrown errors, and follow the code path that produced a warning.
7 questions
Take quizReview initialization order, early reads, and declaration changes that can break working code.
9 questions
Take quizUse browser evidence to test a diagnosis, inspect the failing state, and verify a lasting fix.
9 questions
Take quizReview overlapping rules, branch priority, and test coverage without requiring one code shape.
6 questions
Take quizReview value types, ordered collections, exact integers, and identity at API boundaries.
8 questions
Take quizReview property contracts, shared state, prototype links, and the receiver of a method call.
12 questions
Take quizIndex, combine, slice, split, and search text while handling boundaries and missing matches.
13 questions
Take quizChoose concise or block bodies, handle parameters, and preserve the right this value in callbacks.
10 questions
Take quizBuild readable messages with concatenation and template literals, including punctuation and evaluated expressions.
7 questions
Take quizBuild a centered console pyramid by relating row numbers, leading spaces, and repeated text.
7 questions
Take quizGenerate a countdown's repeated text while treating singular, zero, and final-reset cases correctly.
6 questions
Take quizFilter vowels from text while preserving the intended consonants, spacing, and case.
7 questions
Take quizReview primitive method access, transformation results, wrapper identity, and metadata persistence.
7 questions
Take quizUse arithmetic, numeric notation, special Number values, and Math helpers with the right units and boundaries.
14 questions
Take quizChoose rounding direction, handle negative ties correctly, and scale values for decimal precision.
9 questions
Take quizTurn horizontal and vertical differences into a straight-line distance with the Pythagorean theorem.
6 questions
Take quizNormalize a value, rescale it to another range, and handle reversed ranges and invalid inputs.
8 questions
Take quizChoose Number, parseInt, or parseFloat based on whether the whole string or a numeric prefix should count.
10 questions
Take quizUse property syntax for computed reads and controlled writes, while watching backing state and inherited data.
9 questions
Take quizMap random draws to inclusive integer ranges, recognize bias, and choose a suitable randomness source.
9 questions
Take quizUse dynamic keys, update nested objects, and distinguish deleting a property from assigning undefined.
7 questions
Take quizInitialize instances, share prototype methods, and extend classes without duplicating their behavior.
11 questions
Take quizTrace method receivers and keep callbacks attached to the state they should update.
10 questions
Take quizUnderstand prototype extensions and their effects on existing instances, other code, and future compatibility.
7 questions
Take quizReview flag parsing, presence checks, equality contracts, and object identity.
9 questions
Take quizReview absence contracts, readiness checks, nullish values, and shadowed bindings.
7 questions
Take quizRead nested JSON, distinguish text from parsed values, and respect JSON's stricter syntax and value types.
12 questions
Take quizStore unique values, test membership, and understand iteration and object identity in a Set.
12 questions
Take quizSave and retrieve browser-side data while handling origins, string conversion, missing keys, and storage limits.
11 questions
Take quizChoose cookies, localStorage, or sessionStorage based on server access, scope, and the lifetime your data needs.
8 questions
Take quizCreate arrays, read and replace indexed values, and choose the right method for adding, removing, or finding items.
12 questions
Take quizChoose indexed loops, for...of, or forEach with the right control flow, order, and sparse-array behavior.
11 questions
Take quizTransform collections, select matching values, and combine results with callbacks that have clear contracts.
12 questions
Take quizSeparate indexed array entries from named properties and choose iteration that matches the data you need.
7 questions
Take quizReason about out-of-range access, sparse arrays, valid index keys, and the difference between absence and undefined.
11 questions
Take quizCopy, combine, sort, search, flatten, and transform arrays while keeping mutation and shallow-copy behavior clear.
18 questions
Take quizTrace Fisher–Yates swaps, shrinking random ranges, and the mutation contract of an in-place shuffle.
8 questions
Take quizMap a random sample to a valid array index and handle empty, sparse, or repeat-sensitive selections.
6 questions
Take quizCalculate a midpoint for whole arrays and subranges, with clear conventions for even and empty ranges.
6 questions
Take quizExchange indexed values without losing data, package the swap as a helper, and avoid unintended prototype changes.
7 questions
Take quizConnect checkbox state, category metadata, and CSS classes to show the right list items without deleting them.
12 questions
Take quizUse serialization and Sets for suitable array data while recognizing reference identity and JSON's limits.
10 questions
Take quizCompare shared prototype extensions with explicit Array subclasses and trace construction and derived results.
9 questions
Take quizWrap array positions with counters and remainders, including offsets, subsets, and boundary cases.
9 questions
Take quizRepresent grids with nested arrays, choose a coordinate convention, and create independent rows and cells.
10 questions
Take quizMeet a sorting goal with explicit comparison rules and preserve the input when callers still need its original order.
6 questions
Take quizAccumulate numeric values and report a total without introducing off-by-one or string-concatenation bugs.
5 questions
Take quizConnect page structure, styling, and behavior to the browser objects your code can read and change.
8 questions
Take quizChoose selectors, handle missing matches, and distinguish one element from a static collection.
9 questions
Take quizChange text and attributes while keeping element references, classes, and input values straight.
8 questions
Take quizChoose inline properties or reusable classes, then add, remove, and toggle styles without losing state.
10 questions
Take quizFollow parents, siblings, and children without confusing element collections with all-node traversal.
9 questions
Take quizPlace new nodes, move existing ones, remove subtrees, and choose the right depth when cloning.
11 questions
Take quizBuild data-driven content with markup or fragments while preserving safety, identity, and clear update behavior.
9 questions
Take quizTurn topping data into a real list using JavaScript, with predictable ordering and safe text.
5 questions
Take quizUpdate parts of complex CSS values while keeping transforms, gradients, and their structure in CSS.
8 questions
Take quizRead and change attributes, use dataset, and decide which data belongs on an element.
9 questions
Take quizUse emoji characters and code points correctly while accounting for accessibility and platform differences.
7 questions
Take quizGenerate valid hex and HSL colors, constrain their ranges, and derive related colors from a shared choice.
12 questions
Take quizChoose the measurement that matches the page, window, or screen space you actually need.
8 questions
Take quizParse URL components and construct query parameters without confusing paths, ports, and encoded data.
10 questions
Take quizOpen a user-controlled color picker, await its result, and handle unsupported browsers or cancellation.
7 questions
Take quizPosition clock hands, convert time into rotation, and adapt smooth motion to accessibility preferences.
14 questions
Take quizRegister handlers, inspect event objects, and remove listeners using the same callback and capture setting.
9 questions
Take quizTrace an event's path and distinguish propagation, listener targets, and default actions.
11 questions
Take quizChoose click and hover events, read coordinates and buttons, and interpret wheel input correctly.
11 questions
Take quizCoordinate DOM readiness, resource loading, and classic script execution with defer and async.
10 questions
Take quizWire buttons to the right destinations while respecting DOM readiness and native link behavior.
6 questions
Take quizDelegate events to a shared parent while filtering targets and supporting dynamically added children.
9 questions
Take quizHandle key presses, combinations, focus, and defaults using modern keyboard properties.
11 questions
Take quizCreate and dispatch application events, attach detail data, and understand synthetic-event limits.
9 questions
Take quizLoad code on demand, coordinate dependencies, and avoid misleading async-attribute assumptions.
8 questions
Take quizPrepare images before an interaction and track completion without confusing a request with readiness.
7 questions
Take quizLimit expensive reactions to frequent events and choose frame-based or time-based scheduling deliberately.
7 questions
Take quizReset an inactivity timer on input and distinguish a quiet page from proof that a user is absent.
8 questions
Take quizKeep a decorative follower in the right coordinate space and give its movement controlled visual lag.
6 questions
Take quizKeep a stable answer, validate guesses, and update form feedback without losing game state.
12 questions
Take quizRead system time, format a twelve-hour display, and update it without relying on fixed frame timing.
10 questions
Take quizShift lowercase letters with wraparound, validate input, and keep the output synchronized with message changes.
13 questions
Take quizTurn pointer coordinates into eye rotation and a gentle tilt while keeping coordinate spaces consistent.
6 questions
Take quizTrack ordered key presses, reset failed attempts, and enforce the pause between successive keys.
9 questions
Take quizAdd entries through a form, preserve their identities, and remove the selected item safely.
7 questions
Take quizUnderstand viewport measurements, custom zoom notifications, and the limits of a resize-based heuristic.
10 questions
Take quizFetch data asynchronously, inspect HTTP outcomes, parse response bodies, and recognize equivalent XMLHttpRequest steps.
12 questions
Take quizMatch coordinate spaces, account for element geometry, and position a marker at the clicked point.
9 questions
Take quizCompare consecutive positions, handle unchanged axes, and avoid mistaking initialization or scrolling for motion.
7 questions
Take quizUse lightweight HTTP probes without confusing failures, blocked access, or server fallbacks with file existence.
7 questions
Take quizConnect playback, progress, seeking, volume, and mute controls while handling media readiness and failures.
12 questions
Take quizTrack an active press, cancel pending work, signal completion, and animate progress without assuming a fixed refresh rate.
12 questions
Take quizTrack drag state and accumulated offsets, preserve the grab point, and handle movement beyond the original target.
11 questions
Take quizDistinguish touch support from the user's current input and preserve mixed-input experiences.
6 questions
Take quizRequest camera access responsibly, attach a MediaStream to video, and stop capture cleanly.
10 questions
Take quizCompare canvas text widths against a fallback and understand why the result is a heuristic, not an installed-font inventory.
8 questions
Take quizCompare touch positions, select a dominant axis, and reset gesture state without confusing tiny movements or cancelled contacts.
10 questions
Take quizTurn a photo response into a matching image and photographer credit, with safe rendering and failure handling.
6 questions
Take quizBuild an oscillator-to-gain audio graph, choose random sound parameters, and manage playback and cleanup.
11 questions
Take quiz:: Copyright KIRUPA 2026 //--