JavaScript for the Web Flashcards

(21 cards)

1
Q

What does AJAX stand for?

A

Asynchronous JavaScript and XML

AJAX is a programming concept that provides richer, interactive web applications through various technologies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define Anonymous Functions.

A

A type of function without a name, often used as a parameter of another function

Commonly executed immediately after declaration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an Array?

A

A data structure for storing and retrieving data by indexed keys

Uses zero-based indexing and can dynamically grow or shrink.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Classes in JavaScript?

A

Blueprints for building objects with similar characteristics and behaviors

Encapsulates data (properties) and functions (methods).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a Client-Side Script?

A

A program that accompanies an HTML document and runs during load or on action

Used for form validation, processing input, or dynamically creating document elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does DOM stand for?

A

Document Object Model

An API allowing dynamic access and updates to content, structure, and style.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define Element Nodes.

A

All HTML tags

They represent the structure of a web page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are Element Objects?

A

The most general base class for all element objects in a Document

Contains methods and properties common to all elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an Event in JavaScript?

A

Something a browser or user does that JavaScript can react to

Examples include button clicks or form submissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does Event Binding refer to?

A

Telling the browser that a function should be called when an event occurs

Essential for interactive web applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define Event Handlers.

A

Functions that declare what to do when an action is performed

Example: onclick event for a button.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the keyword Extend do?

A

Creates a class that is a child of another class

Used in class declarations or expressions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are Functions in JavaScript?

A

Modules of code that execute a particular task

They may take in data (arguments) and return data (return value).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is an IIFE?

A

Immediately Invoked Function Expression

Runs immediately after being defined and cannot be called again.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are Nodes in the DOM?

A

The basis of all elements in the Document Object Model structure

They represent various parts of the document.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Define Objects in JavaScript.

A

Instances created from a class representing real-world entities

They have properties and methods that can be accessed and changed.

17
Q

What are Prototypes?

A

Function prototypes that define and add properties or methods to an object

Objects inherit properties and methods defined by the prototype.

18
Q

What is the purpose of a Script?

A

Modifies and extends HTML documents in interactive ways

Can validate forms, process input, and create document elements dynamically.

19
Q

What are Self-Executing Functions?

A

Functions used to initialize data or declare DOM elements

These can be anonymous functions.

20
Q

Define Text Nodes.

A

Nodes that contain actual text between an element’s start and end tags

Essential for displaying text content in HTML.

21
Q

What does the keyword this refer to?

A

Current instance of the object

The value of ‘this’ can vary depending on how the object is called.