JavaScript Flashcards
Is there a correlation between “JavaScript” and “Java”?
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.
What is another interchangeable name for JavaScript?
ECMAScript
As of 2009, we’re now at the point where all major browsers support what version of ECMAScript?
5
The word “while” in a for loop is a _____ structure.
control
What is the most common font face / type family used to denote <code></code> syntax in print and web?
Monospace, courier
CRUD
Create, Read, Update, and Delete.
In JavaScript, what is a decimal / whole number also and more commonly referred to as?
Integer
A ___ ________ is represented by zeros and ones.
bit sequence
What is the binary equivalent number of 13?
00001101
What are the 6 basic value types in JavaScript?
Numbers, strings, booleans, objects, functions, and undefined values.
JavaScript uses a fixed number of how many bits to store a single number value?
64
64 bits is the equivalent of roughly how many different numbers?
18 quintillion
What does the letter “e” represent in the number 2.998e8?
Exponent
6.78 is a __________ number.
fractional, floating point.
__________ digit numbers are approximations and not precise values.
Fractional
The main thing to do with numbers in JavaScript and other programming languages is this.
Arithmetic
What is the singular term used to represent The + and * in JavaScript?
Operator
The __________ of each operator determines the order in which calculations are made.
precedence
The “modulo” otherwise known as the _________ operator.
remainder
You are ________ a character by preceding it with a backslash.
escaping
When the “n” character occurs after a backslash, it is interpreted as what?
A new line
How is the tab character in a string represented?
\t
Strings are not added but ____________ together.
concatenated
“mic” + “hel” + “ “ + “joan” + “isse”
A string concatenation
typeof is a _____ operator.
unary
This operator produces a string value naming the type of value you give it.
typeof
Operators that use two values are called ______ operators, while those that only take one are called _____ operators.
binary, unary
Which of the two (uppercase or lowercase) letters has higher precedence in a string value?
lowercase
The actual and precise string character ordering is based on the _______ standard.
unicode
What is the only number in JavaScript not equal to itself?
NaN
A fragment of code that produces a value is called an __________.
expression
A program is simply a list of __________.
statements
A variable name cannot include punctuation, except for these 2 characters.
$ _
If you ask for the value of an empty variable, you’ll get what value?
Undefined
var, break, for, else, switch, true, typeof, continue, null, this […]
Special meaning words are referred to as “keywords”.
Executing a function is called ________, _______, or ________ it.
invoking, calling, applying
This function takes any number of number values and gives back the greatest.
Math.max
When a function produces a value, it is said to ______ that value.
return
This function converts a value to a number.
Number
A for loop is this control flow type.
Conditional Execution
Curly braces do for statements what parentheses do for expressions: they _____ them together, making them count as a ______ _________.
group, single statement