WebDev-Midterms

studied byStudied by 36 people
5.0(3)
Get a hint
Hint

Scripting Language

1 / 169

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

170 Terms

1

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.

New cards
2

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.

New cards
3

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.

New cards
4

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.

New cards
5

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

New cards
6

External Script

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

New cards
7

Internal Script

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

New cards
8

Inline Script

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

New cards
9

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.

New cards
10

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.

New cards
11

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.

New cards
12

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.

New cards
13

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.

New cards
14

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.

New cards
15

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.

New cards
16

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.

New cards
17

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.

New cards
18

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.

New cards
19

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.

New cards
20

Events

Actions that can be triggered programmatically.

New cards
21

Event object

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

New cards
22

dispatchEvent()

A method used to trigger an event.

New cards
23

CustomEvent

An object used to define custom events.

New cards
24

AJAX

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

New cards
25

XMLHttpRequest (XHR) object

An object used to make asynchronous requests to a server.

New cards
26

callback functions

Functions that are executed when a request has been completed.

New cards
27

Promise

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

New cards
28

fetch API

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

New cards
29

Preprocessors

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

New cards
30

PUG

A JavaScript-based HTML preprocessor.

New cards
31

SASS

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

New cards
32

LESS

A CSS preprocessor.

New cards
33

Libraries

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

New cards
34

Frameworks

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

New cards
35

Library vs Framework

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

New cards
36

Polyfills

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

New cards
37

Utilization

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

New cards
38

Coding Playgrounds

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

New cards
39

Content Management Systems (CMS)

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

New cards
40

Variables

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

New cards
41

Data types

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

New cards
42

Built-in objects

Math, Date, JSON, RegExp

New cards
43

User-defined objects

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

New cards
44

Methods

Functions associated with objects

New cards
45

Properties

Variables associated with objects

New cards
46

Arrays

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

New cards
47

Functions

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

New cards
48

Arrow functions

Concise syntax for anonymous functions using =>

New cards
49

Template literals

Use backticks `` to embed expressions ${expression}

New cards
50
New cards
51

Spread operator

... used to expand iterables into individual elements

New cards
52

Destructuring

Extract values from arrays/objects into distinct variables

New cards
53

Scope

Global, function, block

New cards
54

Hoisting

Variable and function declarations moved to top of scope

New cards
55

Closures

Inner function has access to variables in outer function scope

New cards
56

this keyword

Refers to current execution context object

New cards
57

Strict mode

prevents accidental globals, disables some problematic language features

New cards
58

JSON

JavaScript Object Notation, parsing and stringification

New cards
59

Promises

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

New cards
60

Event handler

Function that runs in response to an event

New cards
61

addEventListener()

Registers an event handler on an element

New cards
62

Common events

click, submit, keydown, scroll, load, error

New cards
63

Event object

Contains details about event like target element

New cards
64

Event bubbling

Events propagate up DOM tree from child to parent

New cards
65

Event capturing

Events propagate down DOM tree from parent to child

New cards
66

preventDefault()

Cancels default behavior of event like form submission

New cards
67

stopPropagation()

Stops event from bubbling/capturing further

New cards
68

Inline handlers

<element onclick="...">

New cards
69

Synthetic events

Programmatically created and dispatched via dispatchEvent()

New cards
70

Mouse events

click, dblclick, mouseup, mousedown, mousemove

New cards
71

Keyboard events

keydown, keyup, keypress

New cards
72

Form events

submit, change, focus, blur

New cards
73

Document events

DOMContentLoaded, readystatechange

New cards
74

Window events

load, beforeunload, resize, scroll

New cards
75

Touch events

touchstart, touchmove, touchend

New cards
76

Gesture events

pinch, rotate

New cards
77

Pointer events

pointerdown, pointerup, pointercancel

New cards
78

Animation events

animationstart, animationend

New cards
79

Transition events

transitionstart, transitionend

New cards
80

Window

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

New cards
81

Document

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

New cards
82

Navigator

Info about browser, userAgent property

New cards
83

Screen

Info about display, width and height properties

New cards
84

Location

URL information, href property and assign() method

New cards
85

History

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

New cards
86

DOM tree structure

Document nodes in hierarchical tree structure

New cards
87

nodeType

Identifies type of node like element, text, comment

New cards
88

innerHTML

Renders HTML content inside element

New cards
89

textContent

Text inside element without HTML tags

New cards
90

parentNode

Node containing current node

New cards
91

childNodes

List of nodes contained in parent

New cards
92

firstChild, lastChild

First and last child nodes

New cards
93

nextSibling, previousSibling

Adjacent sibling nodes at same tree level

New cards
94

appendChild()

Adds new child node to parent

New cards
95

removeChild()

Removes child node from parent

New cards
96

insertBefore()

Inserts new child node before reference node

New cards
97

replaceChild()

Replaces old child node with new node

New cards
98

cloneNode()

Clones node for insertion elsewhere

New cards
99

getAttribute()

Gets value of element's attribute

New cards
100

setAttribute()

Sets value of element's attribute

New cards

Explore top notes

note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 25 people
... ago
5.0(2)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 29 people
... ago
5.0(1)
note Note
studied byStudied by 67 people
... ago
4.7(3)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 34 people
... ago
5.0(1)
note Note
studied byStudied by 4699 people
... ago
5.0(6)

Explore top flashcards

flashcards Flashcard (69)
studied byStudied by 6 people
... ago
5.0(2)
flashcards Flashcard (81)
studied byStudied by 24 people
... ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (75)
studied byStudied by 43 people
... ago
5.0(2)
flashcards Flashcard (335)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 11 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (33)
studied byStudied by 28 people
... ago
5.0(1)
robot