JavaScript Fundamentals

JavaScript Fundamentals

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

bracket

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

1 year ago

Date created

Mar 14, 2020

Cards (46)

Section 1

(46 cards)

bracket

Front

any property name that is not a valid JavaScript identifier (for example, a property name that has a space or a hyphen, or that starts with a number) can only be accessed using the ___ notation.

Back

object literal

Front

A JavaScript ___ ___ is a comma-separated list of name-value pairs wrapped in curly brackets

Back

invoked

Front

When you see a function name and two parentheses then this function is ___

Back

box['innerBox']['full']=true;

Front

create an object inside an object and add property full with value true: var box = {}; var innerBox = {}; ____

Back

constructor

Front

A function designed to create new objects, is called an object ___.

Back

$()

Front

____ JQuery library

Back

constructor

Front

___ is a function that returns an object. In JS usually name start with a capital letter; function AnimalMaker (name) {....

Back

element index list

Front

Each invocation of iterator is called with three arguments: ___, ___, ___

Back

case sensitive

Front

Like all JavaScript variables, both the object name (which could be a normal variable) and property name are ___ ___.

Back

function

Front

function definition is statment that use a keyword ___

Back

Function

Front

Functions can also be defined with a built-in JavaScript function constructor called ___().

Back

method

Front

another name for function in JavaScript

Back

block

Front

___ is any space in JS that is surrounded with curly brackets that is not an object. Does not define a scope.

Back

_.each

Front

Alias: forEach; One of the most used method from JS default library; Iterates over a list of elements, yielding each in turn to an iteratee function. It does not have return function

Back

parent function

Front

Creating a closure has 4 steps. First you need to create your ____ ____. Second - define some variables in that scope

Back

browser

Front

JQuery code lives only in a ___

Back

var

Front

Variables created without the keyword ___, are always global, even if they are created inside a function.

Back

underscore

Front

___.js is a utility library that provides methods and objects for your use in JS.

Back

callback

Front

___ is a function used as an argument

Back

arguments

Front

we are passing ___(s) to a function at call-time

Back

parentheses

Front

to call the function you need to type the name of the function and add ___

Back

undefined

Front

Unassigned properties of an object are ___ and not null; myCar.noProperty;

Back

parameters

Front

when we define a function we could add input placeholders for; ___(s)

Back

closure

Front

Private variables can be accessed from parent using a ___,

Back

defined

Front

the variable is ___ when we assign a value to it. var localVariable = null;

Back

curly brackets

Front

Java script object is represented and created using ___ ___s; var test = _

Back

Module Pattern

Front

___ ___; is used to create object-like structures in your code or constructing an API

Back

return

Front

if we want a function to send us back a value we need to use a keyword; ___.

Back

precedence

Front

In a case of a conflict, the most local variable will be used by interpreter. That rule could be called Scope ____

Back

iterator

Front

if we use forEach - then ___ is a fancy word for the function that will be invoked every time.

Back

function body

Front

___ ___ is part of the function between 2 curly brackets that is not interpreted until you call the function.

Back

higher-order

Front

___-___ function is a function that takes a function as an parameter or returns a function

Back

dot square bracket

Front

Property accessors provide access to an object's properties by using the ___ notation or the ___ ___ notation.

Back

_.map

Front

Alias: collect; One of the most used method from JS default library; Produces a new array of values through a transformation function. we are not adding brackets or calling the function. We need to use Return function - keyword

Back

function definition

Front

var nameFunction = function (); is called ___ ___

Back

self-invoking

Front

The function below is actually an anonymous ___ function (function without name). (function () { var x = "Hello!!"; // I will invoke myself })();

Back

call-time

Front

another word for invocation; ___-___

Back

value reference

Front

1.Javascript is always pass by ___, but when a variable refers to an object (including arrays), the "value" is a ___ to the object

Back

side effect

Front

if a function does not send back the value, everything else is called a ___ ___. e.g. console.log

Back

child function

Front

Creating a closure has 4 steps. Third step is defining a ___ ___; and the last step is returning it without calling it.

Back

definition

Front

When we use keyword "function", a name of the function and two parentheses that is called function ___

Back

variable

Front

calling closure has two steps: 1. you create a ___ and assign the function with brackets 2. Then you execute it.

Back

for in

Front

A loop that is good for iteration of items in a object: ____ ___; it would return properties or object keys.

Back

initialize

Front

we ___ the variable by this command; var localVariable;

Back

closure

Front

___ is a function that you can call later and use updated variable in the function scope

Back

arguments

Front

JavaScript functions have a built-in object called the ____ object. It is an Array -like object corresponding to the arguments passed to a function. e.g. console.log(___)

Back