Up and Going Flashcards
Javascript is to Java as
Carnival is to Car
Javascript gets its procedural roots from
C and a little Scheme/Lisp style functional roots
Definition of computer language
Rules for valid format and combinations of instructions ( aka syntax)
Code def
Set of special instructions to tell code what to do
Statement def
Group of words, numbers and operators to perform a specific task
Expression def
any reference to a variable or value
Call expression
A function
Interpreter or compiler def
A special utility on a computer that translates codes into commands
Interpretted vs compiled
Interpreted runs line by line. Compiled translates ahead of time and runs later
How does Javascript interpret/compile?
Compiles on the fly and runs the compiled code
+= -= are known as
Compound assignment. Combines a math operation with an assignment
== is called
loose equals
=== is called
strict equals
Basic types like boolean and string are refered to as
Primitive types
Conversion between value types is called
Coercion
To convert “42” to 42
Number(“42”)
Comments should explain
Why not what
Static typing is AKA
type enforcement
Strong typing
Variable type cannot change (like string to integer)
Weak typing
Variable type can change