Fundamentals of JavaScript 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 generated from lecture notes on Fundamentals of JavaScript, focusing on vocabulary terms and definitions.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

50 Terms

1
New cards

JavaScript

An object-oriented, dynamically typed scripting language, primarily used for client-side scripting.

2
New cards

Dynamically Typed

Variables can be easily converted from one data type to another.

3
New cards

Client-Side Scripting

The browser running code locally rather than relying on the server to execute code.

4
New cards

Advantage of Client-Side Scripting

Reduces the load on the server by processing on client machines.

5
New cards

Advantage of Client-Side Scripting

Allows for rapid response to user events, improving user experience.

6
New cards

Advantage of Client-Side Scripting

JavaScript can interact with downloaded HTML to create a desktop-like user experience.

7
New cards

Disadvantage of Client-Side Scripting

Any required functionality must be implemented redundantly on the server if JavaScript is not enabled.

8
New cards

Disadvantage of Client-Side Scripting

JavaScript-heavy web applications can be complicated to debug and maintain.

9
New cards

JavaScript Fault Tolerance

If a page has invalid JavaScript, it will simply stop execution at the invalid line.

10
New cards

JavaScript Browser Support

Newer features of JavaScript may not be supported in all browsers.

11
New cards

Server-Side Development

Environments for server-side development, such as Node.js.

12
New cards

MongoDB Query Language

A query language used within noSQL databases.

13
New cards

IoT Control Language

A control language for Internet-of-Things (IoT) devices.

14
New cards

Script Placement in HTML

Placing script elements within the head element for maintainability and after CSS link elements.

15
New cards

Script Placement for Performance

Scripts placed at the end of the document, just before the closing body tag, for performance reasons.

16
New cards

Used to handle users who do not have JavaScript enabled.

17
New cards

Shows additional text to search engines when JavaScript is disabled.

18
New cards

Dynamically Typed Variables

You do not have to declare the data type of a variable before you use it.

19
New cards

var, const, let

Keywords used to declare variables in JavaScript.

20
New cards

Undefined

The initial value of a variable if not specified.

21
New cards

Case-Sensitive Language

JavaScript's sensitivity to case when declaring variables.

22
New cards

var keyword

Prior to ES6, used to declare a variable in JavaScript which is either function or global scoped.

23
New cards

let keyword

Creates a block-scoped variable that can be reassigned to a different value.

24
New cards

const keyword

Creates a block-scoped variable whose value cannot be reassigned.

25
New cards

Identifier requirements

Must begin with a $, _, or any character within one of several different Unicode categories.

26
New cards

alert()

Displays content within a browser-controlled pop-up/modal window.

27
New cards

console.log()

Displays content in the browser's JavaScript console.

28
New cards

document.write()

Outputs the content (as markup) directly to the HTML document.

29
New cards

prompt()

Displays a message and an input field within a modal window.

30
New cards

confirm()

Displays a question in a modal window with ok and cancel buttons.

31
New cards

Primitive Types

Represents simple forms of data.

32
New cards

Boolean

True or false value.

33
New cards

Number

Represents some type of number. Its internal format is a double precision 64-bit floating point value.

34
New cards

String

Represents a sequence of characters delimited by either the single or double quote characters.

35
New cards

Null

Has only one value: null.

36
New cards

Undefined

Has only one value: undefined. This value is assigned to variables that are not initialized.

37
New cards

Symbol

New to ES2015, a unque value that can be used as a key value.

38
New cards

Primitive variable memory

Each primitive variable contains the value directly within the memory for that variable.

39
New cards

Reference variable memory

Each reference variable contains a reference to the memory that contains the contents of that object.

40
New cards

const runtime exceptions

Can generate runtime exceptions, since you cannot reassign a value defined with const.

41
New cards

Why use const

Objects and arrays are useable.

42
New cards

Tells variable shouldn't be changing

It tells the browser (and you, the developer) that a variable shouldn’t be changing

43
New cards

Reference Types

Objects are more generally referred to.

44
New cards

Property

A piece of data that "belongs" to an object

45
New cards

Method

An action that an object can perform.

46
New cards

Concatenation

Combine string literals together with other variables.

47
New cards

Concatenate Operator

This is accomplished using the concatenate operator (+).

48
New cards

Seatwork Application

Used for user input and variable conversion.

49
New cards

Seatwork Tip Percentage

This user input should calculate a tip of 10%.

50
New cards

Seatwork Display

The calculation result should be shown in the console.