Section 1

Preview this deck

Native

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (47)

Section 1

(47 cards)

Native

Front

part of the JS language: String, Math, RegExp, Object, Function

Back

.call

Front

both used to invoke functions, takes comma separated arguments,

Back

Why its not good to extend built-in JS objects

Front

it adds properties/functions to its prototype; by extending Array.prototype w/ contains ,implementations can overwrite each other and break code

Back

asynchronous functions

Front

accept a callback as a parameter and execution continue on the next line after the function is invoked

Back

.apply

Front

takes an array as an argument; used to envoke functions

Back

const

Front

cannot be changed

Back

Using Promises instead of callbacks

Front

pros: easier to write (ex: Promise.all()), callbacks can be unreadable cons: more complex, ES2015 is not supported

Back

**

Front

raised a var to a power

Back

Array.find() ES6

Front

returns the value of the first array element that passes a test function

Back

var

Front

can be changed & scoped inside function;

Back

Undeclared

Front

without "var"

Back

Higher Order Function

Front

any function that takes one or more functions as arguments, operates on data, them returns a function as a result

Back

Hoisting

Front

Var definition is at the top of the scope, assignments stay where they are

Back

ES6s Rest Syntax

Front

multiple arguments passed into a function

Back

JavaScript Templating Libraries

Front

Handlebars, Underscore, Lodash, AngularJS, JSX

Back

DOMContentLoaded

Front

fired when the initial HTML doc is loaded and parsed without css and images loaded

Back

Adv "use strict"

Front

used to enable strict mode to scripts or functions; adv- no "this", no global variables

Back

let

Front

is blocked scoped, not hoisted cannot be changed;

Back

synchronous functions

Front

statements are complete before the next, program is evaluated exactly in order, execution may be paused

Back

Property

Front

defined on the DOM

Back

Classical Inheritance

Front

A class being created as a child from a parent class

Back

Event Bubbling

Front

when something happens on a DOM element, it will handle the event with event listeners

Back

Function.prototype.bind()

Front

creates the value of this keyword

Back

Mutable Objects

Front

objects can be changed, everything is mutable by default in Java

Back

Event Delegation

Front

adding event listeners to a parent element

Back

Disadvantge of "use strict"

Front

concat of scripts in different modes might cause issues

Back

===

Front

comparison where type matters

Back

Prototypal Inheritance

Front

All JS objects have a prototype property that is referenced to another; keeps searching until it finds one

Back

document.write()

Front

writes a string of text to a document stream by document.open()

Back

Immutable Objects

Front

objects cannot be changed; classes should be created this way;

Back

Null,

Front

null means no value; undeclared does not include var

Back

==

Front

comparison where type doesn't matter

Back

Closure

Front

combination of a function and its lexical environment where it was declared; determines where a variable can be used

Back

load

Front

fired after DOM and all resources are loaded

Back

JSONP (JS Object Notation w/Padding

Front

method used to bypass the cross-domain policies in web browsers

Back

Module Pattern

Front

Copies the classes and focuses on public and private access to vars

Back

.map()

Front

maps each element to a new one by calling the function on each

Back

ES6s Spread Syntax

Front

easily create copies of arrays or objects without .create, slice, or a library function

Back

Undefined

Front

var that was declared but never given a value

Back

Same-Origin Policy

Front

prevents JS from making requests across domain boundaries

Back

this

Front

defines an object

Back

Host

Front

provided by the runtime environment: window, HTTPRequest, etc

Back

Array.findIndex()

Front

returns a value at a certain index

Back

.forEach

Front

iterates through elements and doesn't return a value

Back

AJAX (Asynchronous JavaScript and XML)

Front

set of techniques that use web technologies on the client side; used without reload the page, but only works if JS is downloaded

Back

Static class members

Front

not tied to a specific instance of a class & have the same value

Back

Attribute

Front

defined on the HTML markup

Back