JavaScript Basics

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

1/21

flashcard set

Earn XP

Description and Tags

These flashcards cover essential JavaScript concepts and terms that are crucial for understanding the language and its application in web development.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards

getElementById() method

A JavaScript method used to find an HTML element by its id.

2
New cards

innerHTML

A property that allows the content of an HTML element to be changed.

3
New cards

style.display

An attribute used to change the display style of an HTML element.

4
New cards

HTML tags used to include JavaScript code within an HTML document.

5
New cards

JavaScript functions

Blocks of code that can be executed when called, often associated with events.

6
New cards

document.write()

A method that writes content directly to an HTML document.

7
New cards

window.alert()

A method to display alerts to the user in a pop-up box.

8
New cards

console.log()

A method used to output data to the web console for debugging.

9
New cards

variables

Containers for storing values in JavaScript, declared using var, let, or const.

10
New cards

const keyword

A keyword for declaring variables that cannot be reassigned.

11
New cards

forEach() method

An array method that executes a provided function once for each array element.

12
New cards

map() method

An array method that creates a new array with the results of calling a function for every element.

13
New cards

filter() method

An array method that creates a new array with all elements that pass the condition implemented by the provided function.

14
New cards

reduce() method

An array method that executes a reducer function on each element of the array, resulting in a single output value.

15
New cards

addEventListener() method

A method that attaches an event handler to a specified element.

16
New cards

DOM (Document Object Model)

A programming interface for HTML and XML documents; it represents the document as a tree of nodes.

17
New cards

class syntax in JavaScript

A syntactical sugar over JavaScript's existing prototype-based inheritance for creating objects.

18
New cards

Regular expressions

Patterns used to match character combinations in strings.

19
New cards

try…catch statement

Syntax used to handle exceptions in JavaScript.

20
New cards

console.warn() method

A method to output warning messages in the console.

21
New cards

null vs undefined

Null is an assignment value, while undefined is a type itself that indicates a variable has not been assigned any value.

22
New cards

String concatenation

The operation of joining two or more strings together.