JavaScript Fundamentals, Modularization, and Design Patterns

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering JavaScript basics, script modularization, jQuery features and plugins, and classic JavaScript design patterns.

32 Terms

1
New cards

Script Modularization

The practice of splitting code into self-contained units with explicit inputs (dependencies) and outputs (exports) to prevent global scope pollution.

2
New cards

Namespace Isolation

A modularization benefit where each module maintains its own scope, preventing identifier collisions or accidental function overwrites between files.

3
New cards

Module Pattern (IIFE)

A design pattern using an Immediately Invoked Function Expression and closures to fake private scope before formal JavaScript module systems existed.

4
New cards

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.

5
New cards

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.

6
New cards

RequireJS

The best-known JavaScript implementation and loader designed around the Asynchronous Module Definition (AMD) specification.

7
New cards

UMD (Universal Module Definition)

A wrapper pattern designed to make libraries compatible across AMD, CommonJS, and plain browser global environments simultaneously.

8
New cards

jQuery

A lightweight JavaScript library released in 2006 that simplifies DOM selection, manipulation, event handling, AJAX, and cross-browser differences.

9
New cards

jQuery Object

An array-like wrapper around zero or more DOM elements returned by a jQuery selector that never returns null.

10
New cards

Method Chaining

A jQuery programming pattern where multiple methods are sequentially executed on a selection because most methods return the jQuery object itself.

11
New cards

Implicit Iteration

A jQuery mechanism that automatically applies a method across every element in a matched set without needing explicit loops.

12
New cards

.on()

The unified jQuery API method for attaching event handlers to elements, replacing older methods like bind, live, and delegate.

13
New cards

Event Delegation

Attaching an event listener to a stable ancestor element to capture and process events triggered by current and dynamically added child descendants.

14
New cards

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.

15
New cards

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().

16
New cards

$.fn

The exposed prototype property of jQuery used to attach custom methods and build reusable jQuery plugins.

17
New cards

Variable

A named container used to store data values that can be referenced, used, and manipulated throughout a program.

18
New cards

let

A modern JavaScript keyword used to declare a block-scoped variable whose value can be reassigned.

19
New cards

const

A JavaScript keyword used to declare a block-scoped identifier whose bound value cannot be reassigned.

20
New cards

var

An older, function-scoped JavaScript variable declaration keyword that should generally be avoided in modern code.

21
New cards

Object

An unordered collection of related data and functionality stored as key-value pairs composed of properties and methods.

22
New cards

Array

An ordered, zero-indexed list-like data structure used to hold multiple values within a single variable.

23
New cards

Function

A reusable, callable block of code created to execute a specific task or return a calculated value.

24
New cards

Parameters

The placeholder variable names declared in a function definition that receive incoming input data.

25
New cards

Arguments

The actual values or expressions passed into a function when it is invoked.

26
New cards

Design Pattern

A reusable, general solution or template for solving a common problem in software architecture and design.

27
New cards

Creational Patterns

A category of design patterns that focus on how objects are instantiated and created, such as Factory and Singleton.

28
New cards

Structural Patterns

A category of design patterns dealing with the composition of classes and objects, such as Adapter and Decorator.

29
New cards

Behavioral Patterns

A category of design patterns concerned with communication and assignment of responsibilities between objects, such as Strategy and Observer.

30
New cards

Factory Pattern

A creational pattern that delegates object creation to a dedicated function or class instead of instantiating classes directly with the new keyword.

31
New cards

Singleton Pattern

A creational design pattern that restricts a class to exactly one instance and provides a global access point to it.

32
New cards

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.