JavaScript Flashcards

1
Q

Is there a correlation between “JavaScript” and “Java”?

A

No. The name “JavaScript” is not in any way related or have anything to do with “Java”. The language was named “JavaScript” around the time when Java was gaining popularity and being heavily marketed.

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

What is another interchangeable name for JavaScript?

A

ECMAScript

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

As of 2009, we’re now at the point where all major browsers support what version of ECMAScript?

A

5

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

The word “while” in a for loop is a _____ structure.

A

control

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

What is the most common font face / type family used to denote <code></code> syntax in print and web?

A

Monospace, courier

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

CRUD

A

Create, Read, Update, and Delete.

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

In JavaScript, what is a decimal / whole number also and more commonly referred to as?

A

Integer

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

A ___ ________ is represented by zeros and ones.

A

bit sequence

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

What is the binary equivalent number of 13?

A

00001101

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

What are the 6 basic value types in JavaScript?

A

Numbers, strings, booleans, objects, functions, and undefined values.

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

JavaScript uses a fixed number of how many bits to store a single number value?

A

64

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

64 bits is the equivalent of roughly how many different numbers?

A

18 quintillion

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

What does the letter “e” represent in the number 2.998e8?

A

Exponent

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

6.78 is a __________ number.

A

fractional, floating point.

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

__________ digit numbers are approximations and not precise values.

A

Fractional

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

The main thing to do with numbers in JavaScript and other programming languages is this.

A

Arithmetic

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

What is the singular term used to represent The + and * in JavaScript?

A

Operator

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

The __________ of each operator determines the order in which calculations are made.

A

precedence

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

The “modulo” otherwise known as the _________ operator.

A

remainder

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

You are ________ a character by preceding it with a backslash.

A

escaping

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

When the “n” character occurs after a backslash, it is interpreted as what?

A

A new line

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

How is the tab character in a string represented?

A

\t

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

Strings are not added but ____________ together.

A

concatenated

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

“mic” + “hel” + “ “ + “joan” + “isse”

A

A string concatenation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
typeof is a _____ operator.
unary
26
This operator produces a string value naming the type of value you give it.
typeof
27
Operators that use two values are called ______ operators, while those that only take one are called _____ operators.
binary, unary
28
Which of the two (uppercase or lowercase) letters has higher precedence in a string value?
lowercase
29
The actual and precise string character ordering is based on the _______ standard.
unicode
30
What is the only number in JavaScript not equal to itself?
NaN
31
A fragment of code that produces a value is called an __________.
expression
32
A program is simply a list of __________.
statements
33
A variable name cannot include punctuation, except for these 2 characters.
$ _
34
If you ask for the value of an empty variable, you'll get what value?
Undefined
35
var, break, for, else, switch, true, typeof, continue, null, this [...]
Special meaning words are referred to as "keywords".
36
Executing a function is called ________, _______, or ________ it.
invoking, calling, applying
37
This function takes any number of number values and gives back the greatest.
Math.max
38
When a function produces a value, it is said to ______ that value.
return
39
This function converts a value to a number.
Number
40
A for loop is this control flow type.
Conditional Execution
41
Curly braces do for statements what parentheses do for expressions: they _____ them together, making them count as a ______ _________.
group, single statement
42
A sequence of statements wrapped in braces is called a _____.
block
43
The "do" loop differs from the "while" loop only on one point, what is that point?
A "do" loop always executes its body at least once and it starts testing whether it should stop only after the first execution.
44
Values passed to functions are called _________.
arguments
45
When this keyword is encountered in a loop body, control jumps out of the body and continues with the loop's next iteration.
continue
46
Why does the number function begin with a capitalized letter?
To convey / mark the function as a constructor.
47
There are two kinds of flow control disturbances, what are they?
Conditional and looping statements.
48
What does JSON stand for?
JavaScript Object Notation
49
The environment encapsulates what in common JavaScript terminology?
The set of defined variables.
50
A statement ends with this character.
;
51
Part of the browser that reads, understands, and runs the instructions in a JavaScript program.
JavaScript Interpreter
52
When a browser follows the instructions in a program, it ____ or ________ that program.
runs, executes
53
3.8712 and .00009 are this kind of number.
Floating Point
54
What are the 3 types of numbers in JavaScript?
Integers (whole), Fractional (floating point), Scientific Notation.
55
The "plus" symbol is more technically referred to as this.
Addition Operator
56
What does Math.random() produce?
A random number from 0 up to but not including 1 (e.g. 0.9127127448).
57
===
Strict equality operator; compares the type, as well as the value.
58
A condition always ________ to true or false.
evaluates
59
True or false: Just 1 of multiple "or" conditions (expressions) needs to evaluate as true in order for the entire larger conditional to return true.
true
60
``` // ____________ functions and variables. // self __________ at script run time. (Function() { })(); ```
Encapsulates, invocation
61
var myStore = {};
Object literal notation
62
What will the following function return? myFunc() { Math.floor(Math.random() * 6) + 1; }
A randomly generated whole number between 1 and 6.
63
A function expression let's you assign a function to a ________.
variable
64
A function "expression" let's you assign a function to a ________.
variable
65
A function "expression" let's you assign a function to a ________.
variable
66
``` // true or false? var alertMe = function() { alert("This function is anonymous, it has no name."); } ```
True
67
``` // true or false? var alertMe = function() { alert("This function is anonymous, it has no name."); }; ```
True
68
This character is required after the final brace when declaring an anonymous function.
;
69
"return" exits a function and send a value back to the spot in the program where the function was called.
True
70
Variables, arrays, objects, are ____ _________.
data structures
71
``` The following statement is what type of array? var myShopping = [ ]; ```
Array Literal
72
``` // Each singular value in this array is an "array ______". var players = ['Jim', 'Shawna', 'Andrew', 'Lora', 'Aimee', 'Nick']; ```
indice
73
Can you use the push( ) method to add more than one item to an array at a time? For example, is this valid: scores.push( 77, 76, 89 );
True
74
An ______ is a container for values in the form of __________ and functionality in the form of _______.
object, properties, methods
75
Objects: The name of the property is a ___.
key
76
The condition of all values at a particular point in time is referring to the object's _____.
state
77
What are the three kinds of objects?
native, host, custom
78
Values stored in objects are called
properties
79
Functionality encapsulated by an object is called a
method
80
The technique used in JavaScript to share functionality between similar types of objects is known as what?
Prototypal Inheritance
81
You _______ a variable name.
declare
82
Name the 5 primitive data types in JavaScript.
Number, String, Boolean, Undefined, Null
83
Simply put, in the context of data types, primitive means what?
They are not objects; they are primitives - | "simple data types".
84
Describe the difference between Undefined and Null.
"Undefined" means there's a variable but it has no value; on the contrary, "Null" means no variable by that name / reference exists.
85
JavaScript has something called "Dynamic Typing", what does that mean?
It means you don't have to manually define the data type of a variable, JavaScript does it on it's own, and on the fly.
86
What is type coercion?
It means JavaScript converts data types on the fly as needed, this happens when when data types are mixed.
87
What is variable mutation?
"Variable Mutation" is the technically correct and fancy way of saying "changing the value of a variable".
88
Why are functions sometimes referred to as "first-class citizens" in JavaScript?
Because they can be store in variables or passed to functions like any other data types.
89
True or False: A parent experiences the same event a child (element) does because of "event bubbling".
True
90
What is the callback function that is passed to addEventListener often referred to as?
An event handler
91
Why is a web proxy useful for AJAX requests?
It allows you to bypass a web browser's same-origin policy by retrieving data from another server, while keeping AJAX requests within the same domain.
92
What do we call the style of programming where we describe the final result, and not the steps?
Declarative
93
What is React?
A library for creating user interfaces.
94
What do we call the style of programming where we write out step by step what to do?
Imperative
95
What tool do we use to translate JSX files into standard JavaScript?
Babel
96
True or False: A React component must return only a single virtual DOM element.
True
97
True or False: You can use if / else statements inside JSX expressions.
False
98
In React, breaking up a larger component in to smaller components that can be composed together is referred to as what?
Decompose / Decomposition
99
In React, a method of combining many smaller or simpler pieces to create a larger piece is known as what?
Composition
100
In React, which function allows you to create a list of JSX elements from an array of JavaScript values?
array.map
101
In React, which property is required on components generated in a loop?
Key
102
True or False: The React community has several state management libraries for use with React.
True
103
When using `React.class`, you do not need to call `.bind()` on methods in order to keep the reference to “this” intact.
True
104
In React, it's good practice to concentrate our application state high in our virtual DOM tree.
True