Arrays, Objects, & Functions Flashcards

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

1/49

flashcard set

Earn XP

Description and Tags

Flashcards based on lecture notes about Arrays, Objects, and Functions in JavaScript.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

50 Terms

1
New cards

Array

A data structure that allows the programmer to collect a number of related elements together in a single variable.

2
New cards

Array literal notation

One way to define an array in JavaScript using square brackets.

3
New cards

Array() constructor

One way to define an array in JavaScript using the Array() constructor.

4
New cards

Indexes

Used to access array elements.

5
New cards

push()

A method to add an item to the end of an existing array.

6
New cards

unshift()

A method to add an item at the beginning of an existing array.

7
New cards

pop()

A method to remove the last element from an array.

8
New cards

Spread syntax

Provides a new way to create an array from one or more existing arrays.

9
New cards

for…of

Iterating through an array using a simplified syntax.

10
New cards

Array destructuring

Provides a simplified syntax for extracting multiple scalar values from an array.

11
New cards

shift()

A method to remove the first element from an array.

12
New cards

splice()

A method used to add or remove elements from an array at any position.

13
New cards

forEach()

A method to iterate through the array.

14
New cards

map()

A method to create a new array by transforming elements of an existing array.

15
New cards

filter()

A method to create a new array with elements that satisfy a provided condition.

16
New cards

find()

A method to find the first element in an array that satisfies a provided condition.

17
New cards

includes()

A method to check if an array contains a specific element.

18
New cards

concat()

A method to combine two or more arrays.

19
New cards

sort()

A method to sort the elements of an array in place.

20
New cards

reverse()

A method to reverse the order of elements in an array in place.

21
New cards

Object literal notation

A way to create objects using a list of key-value pairs.

22
New cards

Dot notation

Accessing object properties using a dot.

23
New cards

Bracket notation

Accessing object properties using square brackets.

24
New cards

Object constructor

Creating an instance of an object using the Object constructor.

25
New cards

for…in loop

Used for iterating through object properties.

26
New cards

Destructuring

Used to extract properties from an object into distinct variables.

27
New cards

JSON

A language-independent data interchange format, a variant of object literal notation.

28
New cards

JSON.parse()

Used to turn a JSON string into an object.

29
New cards

Functions

Building blocks for modular code

30
New cards

Function declaration

A way to define a named function that can be called later in the code.

31
New cards

Function expression

A function assigned to a variable or property.

32
New cards

Arrow function

A compact alternative to a traditional function expression.

33
New cards

Default parameters

Parameters that have a default value if no argument is provided.

34
New cards

Higher-order function

A function that takes another function as an argument or returns a function.

35
New cards

1906

The year Cavite State University was founded.

36
New cards

Data structure

A collection of elements.

37
New cards

Array push

Adding an element to the end of the array.

38
New cards

Array unshift

Adding an element to the beginning of the array.

39
New cards

Array pop

Removing the last element of the array.

40
New cards

Array shift

Removing the first element of the array.

41
New cards

Array splice

Replacing array elements.

42
New cards

forEach array

Looping through each element in the array.

43
New cards

Array map

Creating a new array from another one.

44
New cards

Array filter

An array with only particular elements from the original.

45
New cards

Object

A data structure that holds key value pairs.

46
New cards

Dot notation

Access a value from an object using a dot

47
New cards

Add array data

Add data into an array

48
New cards

Call function

Calling a function

49
New cards

Object properties

Adding to an objects properties

50
New cards

Object properties

Changing an objects properties