JavaScript (INF-302) Glossary

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

1/78

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.

79 Terms

1
New cards

Array

An object in JavaScript which has multiple containers. This allows it to hold multiple values.

2
New cards

Assignment Operator

An operator which is used to set a variable to be equal to a string, number, Boolean operator, list, or date.

3
New cards

BOM

A browser object model (BOM) is a browser-specific convention which refers to all the objects exposed by a web browser.

4
New cards

Boolean Variable

A type of variable with two possible values, which are true or false. It is often used to determine a course of action within a program.

5
New cards

Break

A statement used to stop or get out of a loop.

6
New cards

Case

A text option which can be set to upper or lower. JavaScript is a case-sensitive language, so code and function names must be consistent to work correctly.

7
New cards

Ceiling

A method used in JavaScript to move numbers to a higher whole number.

8
New cards

Comment

A tool used to explain what code does and to tell JavaScript to ignore code temporarily.

9
New cards

Comparison Operator

An operator which is used inside JavaScript to compare arguments.

10
New cards

Console.log

A debugging tool in which requests can be entered to get information about selected script.

11
New cards

Constant

A variable which cannot change throughout its use in code.

12
New cards

Continue

A keyword which is used to skip a turn in a loop where a user is displaying a message or running an action a set number of times.

13
New cards

createElement

A method which is used to create dynamically an element and place that element in a specific spot on a webpage.

14
New cards

Data Localization

The process of using the toLocalDateString method to retrieve a date displayed in a localized format.

15
New cards

Debug

To try to find errors in code and then fix them.

16
New cards

Decrement

An assignment operator which decreases a value by one.

17
New cards

Do Loop

A loop that always runs at least once and then checks the condition.

18
New cards

Document.write

A method which allows the user to write both HTML elements and text to a webpage.

19
New cards

DOM

The Document Object Model (DOM) is an application programming interface which defines the structure and accessibility of a document.

20
New cards

Else If

A statement which checks a condition to see if it is true or false, and then takes action based on the result.

21
New cards

Else Statement

A statement used in conjunction with if and elif statements. It provides an if all else fails option.

22
New cards

Finally

A keyword which is used to deliver a final message to a user regardless of whether an argument was successful or not.

23
New cards

Floor

A JavaScript method used to move numbers to a lower whole number.

24
New cards

For Loop

A loop which will act for a set number of times before canceling.

25
New cards

Get

A method used to process data when trying to get information.

26
New cards

getElementByClassName

A method used in JavaScript to locate elements by their class name.

27
New cards

getElementById

A JavaScript method which is used to locate elements by ID.

28
New cards

getElementsByTagName

A method which is used to locate elements by its tag name.

29
New cards

If

A statement used in JavaScript which checks a condition to see if it is true or false, and then takes action based on the result.

30
New cards

Increment

An assignment operator which increases a value by one.

31
New cards

Indentation

The process of moving code to the right in order to make it easier to read, but also to complete if statements.

32
New cards

Index Number

A tool which is used to access an element inside of an array.

33
New cards

Initialization

The act of storing a value in a variable in JavaScript.

34
New cards

innerHTML

A property in JavaScript which allows the user to control dynamically the text in between the opening and closing tag of an existing HTML element.

35
New cards

Instantiation

A tool used to create a new template for an object, otherwise known as a class.

36
New cards

Logical Operator

A symbol used in a logical statement to determine the logic between values. Examples would include &&, !, ||, and others.

37
New cards

Loop

A statement which allows code to be executed multiple times.

38
New cards

Masking Value

A tool used in JavaScript to mask or hide characters typed into sensitive fields on a form, such as a password field. Setting an input field to a password type field will mask the field.

39
New cards

Math.abs

A method used in JavaScript to make a number represent absolute value.

40
New cards

Max

A method used in JavaScript to retrieve the highest numbers from a range of numbers.

41
New cards

Method

A tool within JavaScript which is used to take action on objects and their properties.

42
New cards

Min

A JavaScript method which retrieves the lowest numbers from a range of numbers.

43
New cards

Modulus

The term used to indicate the remainder when dividing whole numbers in JavaScript.

44
New cards

NaN

Not a Number (NaN) is an indicator which will usually appear when a calculation expecting a number takes place.

45
New cards

Nested If

An if statement that is placed inside of another if statement.

46
New cards

Noscript

A tag which is used to ensure that JavaScript code works on a browser that does not support JavaScript.

47
New cards

Null

An empty variable on a webpage which has been declared and is defined as empty but not zero.

48
New cards

Number

A variable in JavaScript which is used to store data as floating point decimals.

49
New cards

Object

An item in JavaScript which can be manipulated.

50
New cards

Onclick

One of the most commonly used events in JavaScript, it triggers code when an object is clicked.

51
New cards

Onchange

An event which executes when an object is changed.

52
New cards

Onkeydown

An event which will trigger when a user presses a key on a keyboard.

53
New cards

Onload

An event in JavaScript which occurs when an HTML element loads.

54
New cards

Onmouseout

Similar to an onmouseover event, this event triggers when a mouse is moved away from an object.

55
New cards

Onmouseover

A JavaScript event which triggers when a user rolls a mouse over an object.

56
New cards

Onsubmit

The event used to run, or validate, any last code before a form sends its data to be processed.

57
New cards

Pop

Similar to push, it is a tool used to remove the last item from an array.

58
New cards

Post

A method used to process data when a user is posting information somewhere.

59
New cards

Pow

A type of method in JavaScript which takes a number and raises it to a specified power.

60
New cards

Prepopulating Value

A value option which is set in a form field prior to a user filling it out.

61
New cards

Property

A characteristic of an object within JavaScript.

62
New cards

Push

An array concept which is used to add an item to an array.

63
New cards

RNG

A random number generator (RNG) is used to add the randomly generated numbers to a game, creating the element of surprise.

64
New cards

Round

A method used in JavaScript to round a number to the nearest whole number.

65
New cards

Scope

An item within JavaScript which defines the depth to where a variable can be used in a file. Two factors determine scope: where the variable is declared and whether it is explicitly declared, meaning whether the var keyword is being used.

66
New cards

Shift

A method which is used to remove the first item from an array.

67
New cards

Single-Dimensional Array

An array with a single object that only has one group of values.

68
New cards

Sqrt

A type of method which calculates the square root of a number.

69
New cards

String

One of the most common variables in JavaScript, it is used to store text, numbers, symbols, and other characters.

70
New cards

Switch

A conditional statement which compares code against multiple cases and executes one or more blocks of code based on matching cases.

71
New cards

Try/Catch

A block in which code tries to run and, if there is an error, the catch part controls what happens next.

72
New cards

typeOf Operator

A tool used in JavaScript which reveals the data type that is assigned to a variable.

73
New cards

Undefined

An empty variable which had been declared but has no value.

74
New cards

Unshift

An array method which is used to add an item to the beginning of an array.

75
New cards

Use Strict

A command used to force every variable in a function to be explicitly declared as a variable.

76
New cards

Validation

The act of making sure valid data is entered on a form before the form is submitted. The two most common validation tasks are to make sure required fields are filled out and to make sure the correct type of data is entered into a field.

77
New cards

Variable

A container which is used to hold information in JavaScript that can be used later in the code.

78
New cards

While Loop

A loop which proposes an argument where if something is true or false it will run a designated code.

79
New cards

Window

An object which represents a browser window in JavaScript.