1/26
These flashcards cover fundamental concepts, advantages, and operators of the JavaScript programming language, along with its history and application in web development.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
JavaScript
A high-level, dynamic, untyped, and interpreted programming language.
Prototype-based language
A type of programming language where inheritance is accomplished through a prototype rather than classes.
Reduced server interaction
Allows validation of user input before sending it to the server, minimizing unnecessary requests.
Immediate feedback
Allows users to see if they made input errors without a page reload.
Client-side JavaScript
JavaScript that runs in a user's browser and cannot read or write files for security reasons.
Brendan Eich
The creator of JavaScript, who developed it in May 1995.
DOM
Document Object Model, the interface that browsers provide for manipulating HTML and XML documents with JavaScript.
Variable declaration
The process of creating a variable, typically using keywords like var, let, or const in JavaScript.
Arithmetic Operators
Operators that perform mathematical calculations such as addition, subtraction, multiplication, and division.
Data Types in JavaScript
Categories of values including Numeric, String, and Boolean.
Comparison Operators
Operators that compare values, returning a boolean result based on the comparison.
Logical Operators
Operators that combine boolean values or expressions, such as AND, OR, and NOT.
Assignment Operator
An operator used to assign a value to a variable.
Inline JavaScript
JavaScript code written directly within HTML elements as event handlers.
External JavaScript file
A separate JavaScript file that can be linked to an HTML document using the
Valid Variable Name
A name for a variable that follows JavaScript naming conventions.
let keyword
Used for declaring variables that are block-scoped and can be reassigned.
const keyword
Used for declaring variables that are block-scoped and cannot be reassigned once initialized.
var keyword
Used for declaring variables that are function-scoped or globally-scoped, and can be reassigned.
Scope in JavaScript
Determines the accessibility of variables, functions, and objects in different parts of your code.
JavaScript Functions
Blocks of code designed to perform a particular task, which can be defined once and executed multiple times.
JavaScript Comments
Used to explain code and make it more readable, ignored by the JavaScript engine. Can be single-line (//) or multi-line (/* */).
What is JavaScript Event Handling?
A mechanism that allows JavaScript to respond to user actions (e.g., clicks, key presses) or browser events (e.g., page load).
What are JavaScript Conditional Statements?
Statements that execute different actions based on different conditions, primarily using if, else if, and else constructs.
What are JavaScript Loops?
Control structures that repeatedly execute a block of code as long as a specified condition is true, including for, while, and do…while loops.
What is a JavaScript Array?
A single variable used to store multiple values, typically an ordered collection of elements, accessed by an index.
What is a JavaScript Object?
A non-primitive data type that stores properties as key-value pairs, where values can be primitive types, functions, or even other objects.