1/21
These flashcards cover essential JavaScript concepts and terms that are crucial for understanding the language and its application in web development.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
getElementById() method
A JavaScript method used to find an HTML element by its id.
innerHTML
A property that allows the content of an HTML element to be changed.
style.display
An attribute used to change the display style of an HTML element.
HTML tags used to include JavaScript code within an HTML document.
JavaScript functions
Blocks of code that can be executed when called, often associated with events.
document.write()
A method that writes content directly to an HTML document.
window.alert()
A method to display alerts to the user in a pop-up box.
console.log()
A method used to output data to the web console for debugging.
variables
Containers for storing values in JavaScript, declared using var, let, or const.
const keyword
A keyword for declaring variables that cannot be reassigned.
forEach() method
An array method that executes a provided function once for each array element.
map() method
An array method that creates a new array with the results of calling a function for every element.
filter() method
An array method that creates a new array with all elements that pass the condition implemented by the provided function.
reduce() method
An array method that executes a reducer function on each element of the array, resulting in a single output value.
addEventListener() method
A method that attaches an event handler to a specified element.
DOM (Document Object Model)
A programming interface for HTML and XML documents; it represents the document as a tree of nodes.
class syntax in JavaScript
A syntactical sugar over JavaScript's existing prototype-based inheritance for creating objects.
Regular expressions
Patterns used to match character combinations in strings.
try…catch statement
Syntax used to handle exceptions in JavaScript.
console.warn() method
A method to output warning messages in the console.
null vs undefined
Null is an assignment value, while undefined is a type itself that indicates a variable has not been assigned any value.
String concatenation
The operation of joining two or more strings together.