Flashcards › Math & Programming
Math & Programming

Free JavaScript Basics Flashcards

JavaScript’s everyday methods — array transforms, async patterns, equality quirks — are a finite set worth knowing cold. These cards cover the operations that appear in virtually every codebase.

Study these 10 starter cards

QUESTION
Tap the card to reveal the answer
QJS: what is the difference between == and ===?
A=== compares without type coercion (strict equality); == coerces types first
QJS: transform every element of an array?
Aarray.map(x => ...)
QJS: keep only elements matching a condition?
Aarray.filter(x => condition)
QJS: reduce an array to a single value?
Aarray.reduce((acc, x) => ..., initial)
QJS: what does const prevent?
AReassignment of the binding — object contents can still mutate
QJS: syntax for an async function that awaits a fetch?
Aasync function f() { const res = await fetch(url); }
QJS: check if a value is an array?
AArray.isArray(value)
QJS: what is a closure?
AA function that retains access to variables from the scope where it was created
QJS: spread an array into a new one?
Aconst copy = [...original]
QJS: what does JSON.stringify do?
ASerializes a value to a JSON string

Turn these into lasting memory

Reading answers is recognition — remembering them next month takes spaced repetition. Build your own javascript basics deck and we'll schedule every review at the right moment.

Create your free deck →

How to study javascript basics with flashcards

Related flashcard topics

Multiplication TablesAlgebra BasicsGeometry FormulasPython BasicsSQL Basics

Your first deck is free forever

No ads, no credit card — import from Anki or Quizlet, or start from these cards.

Start studying free →