JavaScript Jeopardy! – A method used to create instances of objects; optionally allows assigning specific values to properties. – When function and variable definitions are moved to the top of the function



JavaScript Jeopardy! – A method used to create instances of objects; optionally allows assigning specific values to properties. – When function and variable definitions are moved to the top of the function

1 0


reveal-jeopardy

Jeopardy game in a RevealJS presentation format

On Github ivanoats / reveal-jeopardy

JavaScript Jeopardy!

JavaScript More JS Functional + Quality Paradigms Data Structures $100 $100 $100 $100 $100 $200 $200 $200 $200 $200 $300 $300 $300 $300 $300 $400 $400 $400 $400 $400 $500 $500 $500 $500 $500

$100

A method used to create instances of objects; optionally allows assigning specific values to properties.

What is a constructor (method)?

$200

Variables in a function that receive the value of arguments sent to the function.

What are parameters?

$300

a class-free object system in which objects inherit properties directly from other objects

What is prototypical inheritance?

$400

A pair of curly braces surrounding zero or more name/value pairs

What is an object literal?

$500

A method that lets us construct an array of arguments to use to invoke a function. It also lets us choose the value of this.

What is apply? (Function.prototype.apply())?

$100

When function and variable definitions are moved to the top of the function

Hoisting

$200

A word that describes the visibility and lifetimes of variables and parameters

What is scope?

$300

Nested scopes may have this potential problem

(Unexpected) Shadowing

$400

Scope that is defined by the definition of the variable statically in code

Lexical scoping

$500

Functions that refer to independent (free) variables. In other words, the function defined in this 'remembers' the environment in which it was created.

What is a closure?

$100

An error that occurs when a language’s rules are violated, such as a misspelled keyword or incorrect punctuation.

What is a Syntax Error?

$200

A function that addition to returning a value, modifies some state or has an observable interaction with calling functions or the outside world has a …

What is a Side Effect?

$300

The measure of the degree to which all statements and variables in the module relate to one purpose.

What is cohesion?

$400

The degree to which a module depends on other modules to do its work.

What is Coupling?

$500

A word to describe the number of arguments in the function

What is Arity?

$100

Programming with things that have data fields and methods

What is Object-Oriented (programming) ?

$200

Building the structure and elements of programs, treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data

What is functional (programming)?

$300

Programming focused on describing in a step-by-step way, how a program operates, (statements changing a program’s state)

What is Imperative (or procedural programming)?

$400

Focuses on what the program should accomplish without prescribing how to do it in terms of sequences of actions to be taken

What is Declarative (programming)

$500

programs with ability to treat programs as their data. A program could be designed to read, generate, analyze and/or transform other programs, and even modify itself while running

What is metaprogramming?

$100

An algorithm for looking through an array that reduces the array’s searchable area by half after each comparison.

What is a Binary Search?

$200

A condition in a recursive module that returns a definite value; it causes the module to stop calling itself.

What is a base case?

$300

A Data Structure that is LIFO

What is a Stack?

$400

A Data Structure that is FIFO

What is a Queue?

$500

A data structure consisting of a group of nodes which together represent a sequence.

What is a Linked List