WebDev-Midterms

5.0(3)
studied byStudied by 36 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/169

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

170 Terms

1
New cards

Scripting Language

A type of programming language used to combine components together, but requires a host environment and has limited support for UI design, graphics, and data types.

2
New cards

Web Scripts

Scripts that can run on either the server-side or client-side, with the server-side host environment being the web server and the client-side host environment being the web browser.

3
New cards

Client-Side Script

A script that is integrated with HTML, responds to user interaction and other events, and has access rights to objects in the host environment such as the browser window, browser history, cookies, and web document components.

4
New cards

JavaScript

The most commonly used client-side scripting language, conceptualized by Brendan Eich in 1995. It is also used in server-side scripting and has evolved into a rich, high-level language with various paradigms and features.

5
New cards

Execution Environment

The environment where JavaScript can be specified in an HTML document, such as within a script element, as top-level code (code outside functions), or inside functions (executed only when the function is invoked).

6
New cards

External Script

A JavaScript script that is stored in a separate .js file and linked to the HTML document using the src attribute.

7
New cards

Internal Script

A JavaScript script that is embedded directly within the HTML document using the script element.

8
New cards

Inline Script

A JavaScript script that is included directly within an HTML tag using the event attribute.

9
New cards

Defer Attribute

An attribute used in script tags to download scripts asynchronously with HTML and web resources. The script executes only after the document has been parsed, but before firing the DOMContentLoaded event.

10
New cards

Async Attribute

An attribute used in script tags to download scripts asynchronously with HTML and web resources. The script executes as soon as it has been fetched in full, but before the Load event is fired.

11
New cards

Language Elements

Various elements and features in JavaScript, such as variable declarations (var and let), primitive data types (number, string, boolean, bigint, null, undefined), browser console, wrapper objects, object types, booleans, equality vs. identity, and strings.

12
New cards

Arrays in JS

Dynamically sized data structures in JavaScript that can contain elements of varying types. They have 0-based index values and various methods for manipulation and iteration.

13
New cards

Functions in JS

First-class objects in JavaScript that allow flexibility in coding. They can be stored in variables, part of an array, passed as an argument, and serve as a return value. Functions can be defined as expressions and can be named or anonymous.

14
New cards

User-Defined Objects

Objects defined by the user in JavaScript, which can have properties that may or may not be functions. Properties can be added dynamically to an object, and object definitions can be done using various syntaxes and methods.

15
New cards

JSON

JavaScript Object Notation, a text syntax for storing and exchanging data among applications. JavaScript allows JSON-formatted strings to be converted to JSON objects and vice versa using the JSON.stringify() and JSON.parse() methods.

16
New cards

JS APIs

Additional Web APIs used in JavaScript to access objects, such as the Browser Object Model (BOM) API (Window, Navigator, Screen, Location, History), Document Object Model (DOM) API, and others like Canvas, Fetch, Geolocation, IndexedDB, Local Storage, Push, Service Worker, Websockets, and Web Workers.

17
New cards

DOM API

The Document Object Model (DOM) API provides a representation of the parsed HTML document as a tree structure of nodes, including elements, element attributes, textual content, and HTML document components. It offers various interfaces and methods for manipulating and interacting with the DOM tree.

18
New cards

Functionalities

Various functionalities provided by the DOM API, including constructing/copying nodes, retrieving references to nodes/node collections, traversing the DOM tree, manipulating the DOM tree, event handling, and working with styles.

19
New cards

Event Handling

Events that occur in the DOM as a result of user interaction or generated by APIs to represent the status of tasks or DOM tree components. DOM elements can listen for events and handle them using event handlers, which can be registered to associate events with specific actions.

20
New cards

Events

Actions that can be triggered programmatically.

21
New cards

Event object

An object that represents an event and can be created to trigger events.

22
New cards

dispatchEvent()

A method used to trigger an event.

23
New cards

CustomEvent

An object used to define custom events.

24
New cards

AJAX

Asynchronous JavaScript and XML, a set of techniques and technologies that enable clients and servers to exchange data without reloading the entire page.

25
New cards

XMLHttpRequest (XHR) object

An object used to make asynchronous requests to a server.

26
New cards

callback functions

Functions that are executed when a request has been completed.

27
New cards

Promise

A type that represents the eventual completion (or failure) of an asynchronous task.

28
New cards

fetch API

A modern API for making network requests, including fetching resources from a URL.

29
New cards

Preprocessors

Tools that process data from one program and use the result as input for another program.

30
New cards

PUG

A JavaScript-based HTML preprocessor.

31
New cards

SASS

Syntactically Awesome Style Sheets, a CSS preprocessor with additional features.

32
New cards

LESS

A CSS preprocessor.

33
New cards

Libraries

Collections of utilities, functions, and modules that serve specific coding needs.

34
New cards

Frameworks

A set of libraries that provide a structure and functionality for building applications.

35
New cards

Library vs Framework

The difference between a library and a framework in terms of their usage and implementation.

36
New cards

Polyfills

Code or plugins that implement functionality that browsers do not natively support.

37
New cards

Utilization

How to use libraries and frameworks, including installation and integration instructions.

38
New cards

Coding Playgrounds

Online environments that provide separate frames for editing code and previewing the result.

39
New cards

Content Management Systems (CMS)

Software packages that provide tools for website authoring, collaboration, and administration.

40
New cards

Variables

let and const (block scope) vs var (function scope)

41
New cards

Data types

Primitive - number, string, boolean, null, undefined. Object - object, array, function

42
New cards

Built-in objects

Math, Date, JSON, RegExp

43
New cards

User-defined objects

Created using object literals, constructor functions, Object.create()

44
New cards

Methods

Functions associated with objects

45
New cards

Properties

Variables associated with objects

46
New cards

Arrays

Dynamically sized, zero-based indexing, mutating methods like push/pop

47
New cards

Functions

First-class objects, can be passed as arguments or returned from other functions

48
New cards

Arrow functions

Concise syntax for anonymous functions using =>

49
New cards

Template literals

Use backticks `` to embed expressions ${expression}

50
New cards
51
New cards

Spread operator

... used to expand iterables into individual elements

52
New cards

Destructuring

Extract values from arrays/objects into distinct variables

53
New cards

Scope

Global, function, block

54
New cards

Hoisting

Variable and function declarations moved to top of scope

55
New cards

Closures

Inner function has access to variables in outer function scope

56
New cards

this keyword

Refers to current execution context object

57
New cards

Strict mode

prevents accidental globals, disables some problematic language features

58
New cards

JSON

JavaScript Object Notation, parsing and stringification

59
New cards

Promises

Handles asynchronous operations, .then() and .catch()

60
New cards

Event handler

Function that runs in response to an event

61
New cards

addEventListener()

Registers an event handler on an element

62
New cards

Common events

click, submit, keydown, scroll, load, error

63
New cards

Event object

Contains details about event like target element

64
New cards

Event bubbling

Events propagate up DOM tree from child to parent

65
New cards

Event capturing

Events propagate down DOM tree from parent to child

66
New cards

preventDefault()

Cancels default behavior of event like form submission

67
New cards

stopPropagation()

Stops event from bubbling/capturing further

68
New cards

Inline handlers

<element onclick="...">

69
New cards

Synthetic events

Programmatically created and dispatched via dispatchEvent()

70
New cards

Mouse events

click, dblclick, mouseup, mousedown, mousemove

71
New cards

Keyboard events

keydown, keyup, keypress

72
New cards

Form events

submit, change, focus, blur

73
New cards

Document events

DOMContentLoaded, readystatechange

74
New cards

Window events

load, beforeunload, resize, scroll

75
New cards

Touch events

touchstart, touchmove, touchend

76
New cards

Gesture events

pinch, rotate

77
New cards

Pointer events

pointerdown, pointerup, pointercancel

78
New cards

Animation events

animationstart, animationend

79
New cards

Transition events

transitionstart, transitionend

80
New cards

Window

Represents browser window, methods like alert(), properties like innerWidth

81
New cards

Document

Represents page document, properties like title, methods like getElementById()

82
New cards

Navigator

Info about browser, userAgent property

83
New cards

Screen

Info about display, width and height properties

84
New cards

Location

URL information, href property and assign() method

85
New cards

History

Browser history, back(), forward(), go() methods

86
New cards

DOM tree structure

Document nodes in hierarchical tree structure

87
New cards

nodeType

Identifies type of node like element, text, comment

88
New cards

innerHTML

Renders HTML content inside element

89
New cards

textContent

Text inside element without HTML tags

90
New cards

parentNode

Node containing current node

91
New cards

childNodes

List of nodes contained in parent

92
New cards

firstChild, lastChild

First and last child nodes

93
New cards

nextSibling, previousSibling

Adjacent sibling nodes at same tree level

94
New cards

appendChild()

Adds new child node to parent

95
New cards

removeChild()

Removes child node from parent

96
New cards

insertBefore()

Inserts new child node before reference node

97
New cards

replaceChild()

Replaces old child node with new node

98
New cards

cloneNode()

Clones node for insertion elsewhere

99
New cards

getAttribute()

Gets value of element's attribute

100
New cards

setAttribute()

Sets value of element's attribute