JavaScript Basics and Fundamentals

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/43

flashcard set

Earn XP

Description and Tags

Practice flashcards covering JavaScript basics, including vocabulary, data types, control structures, functions, and object-oriented programming concepts.

Last updated 11:59 PM on 7/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

44 Terms

1
New cards

Markup Languages

Languages like HTML and CSS used to describe and define elements within a document.

2
New cards

Programming Languages

Languages used to communicate instructions to a machine, control its behavior, and express algorithms.

3
New cards

Scripts

JavaScript programs that can be written directly in a web page’s HTML and run automatically as the page loads.

4
New cards

LiveScript

The initial name of JavaScript when it was first created.

5
New cards

ECMAScript

The independent specification that JavaScript follows, separate from its historical naming relation to Java.

6
New cards

JavaScript engine

A special program, sometimes called a "JavaScript virtual machine," that executes JavaScript code; examples include V8, SpiderMonkey, and Chakra.

7
New cards

V8

The specific JavaScript engine used in the Chrome and Opera browsers.

8
New cards

SpiderMonkey

The codename for the JavaScript engine used in the Firefox browser.

9
New cards

Parsing

The process where a JavaScript engine reads the script before conversion.

10
New cards

Compiling

The step in which an engine converts a script into machine language for fast execution.

11
New cards

Same Origin Policy

A safety limitation where JavaScript from one page may not access another page unless they share the same domain, protocol, and port.

12
New cards

src attribute

An attribute of the <script><script> tag used to attach external JavaScript files to an HTML document.

13
New cards

innerHTML

A property used to access an HTML element and define its HTML content.

14
New cards

document.write()

A method used for testing to write directly into the HTML output; it deletes all existing HTML if used after the document is loaded.

15
New cards

window.alert()

A method that displays data in an alert box; this keyword is optional because it is the global scope object.

16
New cards

console.log()

A method used for debugging purposes to display data in the browser console.

17
New cards

window.print()

The only JavaScript method available to access output devices, used to print the content of the current window.

18
New cards

let

A keyword introduced in ES6 (2015) used to define a variable with restricted scope.

19
New cards

const

A keyword introduced in ES6 (2015) used to define a variable that cannot be reassigned.

20
New cards

Identifiers

Unique names used to identify JavaScript variables; they are case-sensitive and must begin with a letter, $$, or _.

21
New cards

Dynamic Types

A concept in JavaScript where the same variable can be used to hold different data types at different times.

22
New cards

Scientific Notation

A way to write extra large or small numbers using exponential form, such as 123e5123e5 or 123e5123e-5.

23
New cards

Booleans

A data type that can only have two values: true or false.

24
New cards

Arrays

Written with square brackets [][], these are objects used to store a collection of items separated by commas.

25
New cards

typeof

An operator used to find the data type of a JavaScript variable or expression.

26
New cards

undefined

The value and type of a variable that has been declared but has not been assigned a value.

27
New cards

null

A value representing "nothing" or something that does not exist; in JavaScript, its data type is incorrectly returned as "object."

28
New cards

Primitive Data

A single simple data value with no additional properties and methods, such as string, number, boolean, and undefined.

29
New cards

if statement

A fundamental control statement that allows JavaScript to make decisions and execute code only if a resulting value is true.

30
New cards

if…else if… statement

An advanced form of conditional statement that allows JavaScript to make a decision out of several possible conditions.

31
New cards

for loop

A compact looping form that includes initialization, a test condition, and an iteration statement.

32
New cards

for…in loop

A specific loop used to iterate through the properties of an object.

33
New cards

Function

A group of reusable code that can be called anywhere in a program to perform a specific task, promoting modularity.

34
New cards

return statement

An optional statement used to send a value from a function back to the calling program; it must be the last statement in the function.

35
New cards

Encapsulation

The OOP capability to store related information, including data and methods, together in an object.

36
New cards

Aggregation

The OOP capability to store one object inside another object.

37
New cards

Inheritance

The OOP capability of a class to rely upon another class for some of its properties and methods.

38
New cards

Polymorphism

The OOP capability to write one function or method that works in a variety of different ways.

39
New cards

Property

An attribute of an object; if it contains a value rather than a function, it is distinguished from a method.

40
New cards

Method

A function that is attached to an object and can be referenced by the "this" keyword.

41
New cards

new operator

An operator used to create an instance of an object, followed by a constructor method like Object(), Array(), or Date().

42
New cards

Constructor

A function used with the "new" operator to create and initialize a new object.

43
New cards

this keyword

A keyword used in user-defined functions to refer to the object that has been passed to the function.

44
New cards

with keyword

A shorthand keyword used to reference an object's properties or methods without repeatedly naming the object.