Intro to JavaScript Flashcards

(65 cards)

1
Q

it is an object-oriented, dynamically typed scripting language

A

JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

is dynamically typed (also called weakly typed) in that variables can be easily (or implicitly) converted from one data type to another.

A

JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

refers to the client machine (i.e., the browser) running code locally rather than relying on the server to execute code and return the result.

A

Client Side Scripting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Processing can be off-loaded from the server to client machines, thereby reducing the load on the server.

A

client-side scripting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The browser can respond more rapidly to user events than a request to a remote server ever could, which improves the user experience.

A

client-side scripting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

was introduced by Netscape in their Navigator browser back in 1996.

A

JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

JavaScript was originally called what?

A

LiveScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

at first did not support JavaScript but instead had its own browser-based scripting language (VBScript).

A

Internet Exp;orer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

is simultaneously a superset and subset of the JavaScript programming language.

A

ECMAScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

the one that introduced many notable new additions to the language (such as
classes, iterators, arrow functions, and promises).

A

The Sixth Edition (or ES6)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

enabled sites that JavaScript became a much more important part of web development.

A

AJAX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

has almost completely displaced XML as the most common format for data transport in interactive web sites, thus making the AJAX acronym less and less meaningful today.

A

JSON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

has migrated into other nonbrowser applications. It can be used as the language within server-side runtime environments such as Node.js

A

JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Some newer non-relational database system use JavaScript as their query language

A

MongoDB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

use JavaScript as their end-user scripting language

A

Adobe Creative Suite and OpenOffice

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

make use of an embedded JavaScript engine.

A

Oculus Rift headset and the Arduino and Raspberry Pi microcontrollers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

of libraries of JavaScript functions and objects are generally referred to as

A

JavaScript Frameworks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

simplify the process of creating Single-Page Applications (SPA)

A

React and Vue.js

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

allow developers to construct applications using software engineering best practices

A

Angular and Ember

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

refers to the practice of including JavaScript code directly within some HTML element attributes

A

Inline JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

refers to the practice of placing JavaScript code within a

 element

A

Embedded JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

It’s function-scoped or global-scoped and gets hoisted (moved to the top of its scope).

A

var

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Declares a block-scoped variable that can be reassigned.

A

let

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Declares a block-scoped variable that cannot be reassigned. It can hold objects/arrays, but their contents can change.

A

const

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
instructs the browser to display a pop-up or modal dialog window
alet()
26
can be a useful way to output markup content from within JavaScript.
document.write()
27
often used to output markup or to combine markup with JavaScript variables
document.write()
28
displays content with a browser controlled pop-up/modal window
alet()
29
display content in the browser's JavaScript console
console.log
30
displays a message and an input field within a modal window
prompt()
30
outputs the content (as markup) directly to the HTML document
document.write()
31
displays a question in a modal window with ok and cancel buttons
confirm()
32
usually referred to as objects
reference types
33
nonobject, simple types
primitive types
34
Stores true or false values.
boolean
35
Represents numeric values (includes integers and decimals). Uses 64-bit floating point format.
Number
36
A sequence of characters enclosed in single (') or double (") quotes
String
37
Has only one value:null
null
38
Value given to uninitialized variables. Different from null.
Undefined
39
represents a unique value that can be used as a key value.
Symbol
40
contain the value of the primitive directly within memory.
Primitive variables
41
contain a reference or pointer to the block of memory associated with the content of the object
object variables
42
Newer versions of JavaScript have added an alternative technique for concatenation
Template literals
43
to combine string literals together with other variables
+
44
are used to execute a code block repeatedly. JavaScript defines three principal statements for executing loops
Loops
45
is a data structure that allows the programmer to collect a number of related elements together in a single variable
Array
46
To add an item to the end of an existing array
push()
47
To add an item at the beginning of an existing array
unshift()
48
can be used to remove the last element from an array.
pop()
49
provides a new way to create an array from one or more existing arrays.
spread syntax
50
introduced an alternate way to iterate through an array
for...of loop
51
provides a simplified syntax for extracting multiple scalar values from an array
array destructuring
52
To reference the object properties
dot notation (objName.property) and square bracket notation obj.Name["property1"]
53
is used as a language-independent data interchange format analogous in use to XML.
JSON
54
convert the JSON string into an actual array
JSON.parse()
55
are the building blocks for modular code in JavaScript.
Functions
56
function expression without function name
anonymous function
57
ES6 added a new syntax for declaring functions
arrow syntax
58
provide a more concise syntax for the definition of anonymous functions.
arrow syntax
59
They also provide a solution to a potential scope problem encountered with the this keyword in callback functions
arrow syntax
60
generally refers to the context in which code is being executed.
Scope
61
variables defined within an if {} block or a for {} loop block using the let or const keywords are only available within the block in which they are defined.
block-level scope
62
if an identifier has this scope, it is available everywhere
global scope
63
is actually an object consisting of the scope environment in which the function is created
closure
64
a function that has an implicitly permanent link between itself and its scope chain.
closure