Skip to content

Instantly share code, notes, and snippets.

// VOCAB LIST - Chapter 4
/**/
// Code Examples:
@LovelaceTuring
LovelaceTuring / vocab_chapter_3.js
Last active June 21, 2023 19:39
Vocabulary for Chapter 3 of Eloquent JavaScript
// VOCAB LIST - Chapter 3
/*
function: A function is created with an expression that starts with the keyword function. Functions have a set of parameters (in this case, only x) and a body, which contains the statements that are to be executed when the function is called. The function body of a function created this way must always be wrapped in braces, even when it consists of only a single statement.
return statement: A return statement determines the value the function returns (A return keyword without an expression after it will cause the function to return undefined)
Parameters to a function: behave like regular bindings, but their initial values are given by the caller of the function, not the code in the function itself
scope: Each binding has a scope, which is the part of the program in which the binding is visible
@LovelaceTuring
LovelaceTuring / vocab_chapter_2.js
Last active January 18, 2023 05:36
Vocabulary for Chapter 2 of Eloquent JavaScript
// VOCAB LIST - Chapter 2
/*
expression: A fragment of code that produces a value.
side effects: changes the internal state of the "machine" in a way that will affect the statements that come after it
binding, or variable: to catch and hold values. After a binding has been defined, its name can be used as an expression. The value of such an expression is the value the binding currently holds.
keywords/reserved words: words with a special meaning, such as let, are keywords, and they may not be used as binding names. There are also a number of words that are “reserved for use” in future versions of JavaScript, which also can’t be used as binding names.
@LovelaceTuring
LovelaceTuring / vocab_chapter_1.js
Created January 3, 2020 13:20
Vocabulary for Chapter 1 of Eloquent Javascript
// VOCAB LIST
/*
Programming: is the act of constructing a program—a set of precise instructions telling a computer what to do.
Programming Language: is an artificially constructed language used to instruct computers.
Best Practices: a composed set of rules, prescribing the form programs should have.
Vanilla JavaScript: what comes with JS - "out of the box".