Flashcards › Math & Programming
Math & Programming

Free TypeScript Basics Flashcards

TypeScript is JavaScript with a type system bolted on — and it has become the default for serious web work. These cards cover the syntax and concepts every TS beginner gets interviewed on.

Study these 10 starter cards

QUESTION
Tap the card to reveal the answer
QWhat is TypeScript?
AA typed superset of JavaScript that compiles to plain JavaScript
QHow do you type a variable as a string?
Aconst name: string = "Ada"
QWhat is an interface?
AA named shape describing an object's structure
QWhat does the ? mean in "age?: number"?
AThe property is optional
QWhat is a union type?
AA value allowed to be one of several types: string | number
QWhat does "any" do — and why avoid it?
ADisables type checking for that value — it silently reintroduces JS's footguns
QWhat is a generic? Give the classic example.
AA type parameter: Array<T> — one definition working over many types
QInterface vs type alias — the practical difference?
AMostly interchangeable; interfaces can merge and extend more naturally
QWhat does "strict" mode in tsconfig enable?
AThe full set of safety checks — including strictNullChecks
QWhat is type narrowing?
AThe compiler refining a union inside checks like typeof x === "string"

Turn these into lasting memory

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

Create your free deck →

How to study typescript basics with flashcards

Related flashcard topics

React BasicsRegex BasicsComputer Science TermsExcel Shortcuts & FunctionsMultiplication TablesAlgebra 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 →