This is a JS study site.

Click on the word to flip to the definition, then click on the definition to flip back to the word.

Strings

A JavaScript data type that represents the exact text of whatever is enclosed in the quotes

Operators

An operator is a special character (or characters) that indicates an action to be performed.
+, -, *, /, and % are called operators.

Variables

Variables are one of the major features of computer programming and we will use them all the time when we are coding. A variable is just a container that stores some information such as a number, an object, or a string.

Methods

A method is an action run on a piece of data; you can think of it as a message you send to a piece of data, and the result is the response.


Boolean

Booleans can only hold 2 possible values - true or false.

Undefined

The undefined data type has only one possible value - undefined. When declaring a variable without giving it a value, JavaScript creates the variable without a value, hence undefined.

NaN

Stands for "not a number, but it is considered a number.

Null

The value null represents the intentional absence of any object value.


Arguments

An argument is the value that is passed into a parameter. We often pass variables into parameters as arguments. We can also pass other data types into parameters as well, but it's much more common to pass in variables.

Parameters

A parameter is a placeholder for an argument. We use parameters when we declare functions and methods.

Return Value

The return statement stops the execution of a function and returns a value from that function.

JavaScript

JavaScript is a programming language used to make web pages interactive. Like HTML and CSS, you do not need to install anything to begin writing JavaScript or see it run on your users' computers.


Functions

Misc.

Parameters Versus Arguments in JavaScript Functions

Primative SNUBS

  • Strings
  • Numbers
  • (null)
  • Undefined
  • Booleans
  • Symbols

Objects

  • regular, plain old objects
  • arrays
  • functions

A Diagram of a Bottle Capping Machine

Comparing Function Declaration and Function Execution