1 is a number?
What is true?
To make a prototype that can be banged!
What is
new Boolean(true)
or
new Boolean(false)
?
This keyword is used to try something.
What is try?
How to get an element by its unique identifier.
What is document.getElementById()?
0 / 0
What is NaN?
What is
new Number(num)
?
What keyword, along with try, is used to catch an Error?
What is catch?
How to get an array of elements by their class names.
What is document.getElementsByClassName()?
var a;
(function() {
return a;
})();
What is undefined?
To make a prototype that can be called (arguments optional).
What is
new Function(function() {
// Stuff
})
?
To create an Error, use the ___ keyword.
What is throw?
* Sidenote: console.error doesn't actually produce an Error. In an Error, the running of code stops.
How to get an array of elements by their tag names.
What is document.getElementByTagName()?
typeof null;
What is the string "object"?
To make a prototype that can be appended with +=
* No, it is not a number
What is
new String("string name")
?
The output of this:
try {
alert(foo);
}
catch(err) {
alert("Hello World!");
}
What is a pop-up with the message displaying "Hello World!".
An unrepresentable value. It's not even equal to itself!
What is NaN?
You throw this.
What is
new Error("Error name.")
?
* Sidenote: doing throw Error("Error Name") will result in the same thing, but this category is about Constructors.
The output of this:
var foo = 5;
try {
alert(foo);
}
catch(err) {
alert("Hello World!");
}
What is a pop-up with the message "5".