Quizzes

JavaScript quizzes

Choose a quiz and test your understanding of a focused concept.

How to Create GUIDs and UUIDs in JavaScript Quiz

Test your JavaScript UUID knowledge: crypto.randomUUID(), getRandomValues(), common mistakes, formats, and safe ID generation.

How to Create Multiline String Literals in JavaScript Quiz

Test your understanding of JavaScript multiline string literals, template literals, interpolation, common mistakes, and real-world use cases.

How to Loop Through an Array in JavaScript Quiz

Test your understanding of looping through arrays in JavaScript with `for`, `for...of`, `forEach()`, `map()`, and common pitfalls.

How to Replace All Occurrences of a String in JavaScript Quiz

Test your understanding of replacing all string occurrences in JavaScript using replaceAll(), regex with /g, and spacing cleanup.

How to Share Code Between JavaScript Files Quiz

Test how to include and share code between JavaScript files using script tags and ES modules with exports and imports.

JavaScript == vs === Quiz: When to Use Strict Equality

Test your understanding of JavaScript == vs ===, type coercion, strict equality, common mistakes, and when loose equality is useful.

JavaScript Capitalize First Character Quiz: Uppercase Only the First Letter

Test your understanding of capitalizing only the first character in JavaScript while keeping the rest unchanged.

JavaScript Class Changes Quiz: classList, className, onclick, and Events

Test how to change an element's class with JavaScript using classList, className, onclick, and addEventListener.

JavaScript let vs var Quiz: Scope, Hoisting, and Modern Usage

Test your understanding of JavaScript `let` vs `var`, including scope, hoisting, loops, redeclaration, and modern best practices.

event.preventDefault() vs return false in JavaScript and jQuery Quiz

Test your understanding of event.preventDefault(), return false, bubbling, and jQuery vs plain JavaScript behavior.