Destructuring, Higher-Order Functions, and ReactJS - Vocabulary Flashcards

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering destructuring, higher-order functions (map, filter, reduce), and ReactJS concepts from the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Destructuring

A convenient ES6 syntax that unpacks values from arrays or properties from objects into distinct variables (introduced in ES6/ECMAScript 2015).

2
New cards

Array Destructuring

Destructuring syntax that extracts array elements into variables using square brackets, e.g., const [a, b] = arr.

3
New cards

Object Destructuring

Destructuring syntax that extracts object properties into variables using curly braces, e.g., const { name, age } = person.

4
New cards

Traditional Method

The standard approach to access array elements or object properties before destructuring was introduced.

5
New cards

Higher-Order Functions

A function that accepts other functions as arguments or returns functions as results.

6
New cards

Map

Creates a new array by transforming each element with a provided function; does not change the original array.

7
New cards

Filter

Creates a new array containing elements that pass a test; does not change the original array.

8
New cards

Reduce

Reduces an array to a single value by accumulating results; returns the final accumulated value.

9
New cards

Arrow Function

A concise function syntax (e.g., const f = x => x * 2) used in examples.

10
New cards

Rest in Destructuring

Collects remaining elements into a rest array using the …rest syntax. (“…” is called ellipsis)

11
New cards

Skipping Items in Destructuring

Skip elements in array destructuring by leaving gaps (e.g., const [a,, c] = arr).

12
New cards

Default Values in Destructuring

If a value is undefined, you can assign a default value to the variable.

13
New cards

Destructuring in Function Parameters

Destructuring can be used directly in function parameter lists to extract data from arguments.

14
New cards

ReactJS

A free and open-source front-end JavaScript library for building UIs with components (created by Jordan Walke).

15
New cards

Components (React)

Reusable pieces of UI code that can be nested to build complex user interfaces.

16
New cards

Props

Properties; data passed from a parent component to a child component; read-only.

17
New cards

npx create-react-app

Command used to scaffold a new React application by downloading the required libraries. A command-line tool used to quickly set up a new React application with a standard configuration and build settings.

18
New cards

npm start

Command to run the React development server locally.

19
New cards

npx

NPM package runner used to execute commands from packages (e.g., npx create-react-app).

20
New cards

ES6 (ECMAScript 2015)

The version of JavaScript that introduced features like destructuring.