JavaScript (Week 1) Flashcards
Data Type
A kind of data, defined by the values it can hold and the operations that can be done to it
Primitive type
A kind of data type. Primitives in JavaScript are: string, number, boolean, null, undefined and symbol
Variable
A container for a value. The main building block for all programming
Declare
Creating a new variable (distinct from assignment)
Assignment
Assigning a value to a variable
Concatenation
The binding of multiple strings together using the + string operator
Interpolation
The process of injecting a variable directly into a string
Template literal
Template literals are string literals that provide an easy way to interpolate a variable or expression into a string
Operator
Symbols that are used to assign, compare and perform operations
Conditional
An expression that evaluates true or false, or a control flow statement that executes code
Function
A predefined and reusable group of behaviors
Call / Invoke
Running a function
Parameters
The variables declared in a function definition
Arguments
The variables passed to a function when it’s called/invoked
HTML element
A building block that makes up the structure of a web page
CSS Selector
A way to identify a set of elements, typically using a tag, class or id
Interface
A shared boundary across which two separate components exchange information
DOM
Document Object Model, the JavaScript interface used to interact with HTML
Event
Any event which takes place in the DOM, these can be generated by users or the browser
Event Handler
A function that will run when a specific event occurs
Method
A type of function for a specific object