1/31
Comprehensive vocabulary flashcards covering JavaScript basics, script modularization, jQuery features and plugins, and classic JavaScript design patterns.
Script Modularization
The practice of splitting code into self-contained units with explicit inputs (dependencies) and outputs (exports) to prevent global scope pollution.
Namespace Isolation
A modularization benefit where each module maintains its own scope, preventing identifier collisions or accidental function overwrites between files.
Module Pattern (IIFE)
A design pattern using an Immediately Invoked Function Expression and closures to fake private scope before formal JavaScript module systems existed.
CommonJS
A module system that emerged around 2009 for synchronous file loading in Node.js, utilizing require() to import and module.exports to share code.
AMD (Asynchronous Module Definition)
A module format created for browser environments that fetches files asynchronously over the network using a define(id?, dependencies?, factory) syntax.
RequireJS
The best-known JavaScript implementation and loader designed around the Asynchronous Module Definition (AMD) specification.
UMD (Universal Module Definition)
A wrapper pattern designed to make libraries compatible across AMD, CommonJS, and plain browser global environments simultaneously.
jQuery
A lightweight JavaScript library released in 2006 that simplifies DOM selection, manipulation, event handling, AJAX, and cross-browser differences.
jQuery Object
An array-like wrapper around zero or more DOM elements returned by a jQuery selector that never returns null.
Method Chaining
A jQuery programming pattern where multiple methods are sequentially executed on a selection because most methods return the jQuery object itself.
Implicit Iteration
A jQuery mechanism that automatically applies a method across every element in a matched set without needing explicit loops.
.on()
The unified jQuery API method for attaching event handlers to elements, replacing older methods like bind, live, and delegate.
Event Delegation
Attaching an event listener to a stable ancestor element to capture and process events triggered by current and dynamically added child descendants.
AJAX (Asynchronous JavaScript and XML)
A technique that allows a web page to exchange data with a web server asynchronously in the background without requiring a full page refresh.
jqXHR
An object returned by jQuery AJAX methods that wraps the native XMLHttpRequest and implements the promise interface with methods like .done(), .fail(), and .always().
$.fn
The exposed prototype property of jQuery used to attach custom methods and build reusable jQuery plugins.
Variable
A named container used to store data values that can be referenced, used, and manipulated throughout a program.
let
A modern JavaScript keyword used to declare a block-scoped variable whose value can be reassigned.
const
A JavaScript keyword used to declare a block-scoped identifier whose bound value cannot be reassigned.
var
An older, function-scoped JavaScript variable declaration keyword that should generally be avoided in modern code.
Object
An unordered collection of related data and functionality stored as key-value pairs composed of properties and methods.
Array
An ordered, zero-indexed list-like data structure used to hold multiple values within a single variable.
Function
A reusable, callable block of code created to execute a specific task or return a calculated value.
Parameters
The placeholder variable names declared in a function definition that receive incoming input data.
Arguments
The actual values or expressions passed into a function when it is invoked.
Design Pattern
A reusable, general solution or template for solving a common problem in software architecture and design.
Creational Patterns
A category of design patterns that focus on how objects are instantiated and created, such as Factory and Singleton.
Structural Patterns
A category of design patterns dealing with the composition of classes and objects, such as Adapter and Decorator.
Behavioral Patterns
A category of design patterns concerned with communication and assignment of responsibilities between objects, such as Strategy and Observer.
Factory Pattern
A creational pattern that delegates object creation to a dedicated function or class instead of instantiating classes directly with the new keyword.
Singleton Pattern
A creational design pattern that restricts a class to exactly one instance and provides a global access point to it.
Strategy Pattern
A behavioral design pattern that defines a family of interchangeable algorithms, encapsulates each one, and allows them to be swapped dynamically at runtime.