Each question in this quiz is timed.
Which of these is an object constructor?
function Bunny(type) { this.type = type; }
var Bunny = {type: ""chocolate""};
Bunny.create();
Object.create(Bunny);
function Star() { // function body }; var andromeda = new Star();
How might you visually depict the prototype chain of `andromeda`?
andromeda --> Star.prototype --> Object.prototype --> null
andromeda --> Star --> Function.prototype --> Object.prototype --> null
andromeda --> Star.prototype -> Function.prototype --> Object.prototype --> null
andromeda --> Star --> Object.prototype --> null
var numbers = [4, 84, 9, 7, 33]; numbers.length; // returns 5 numbers.length = 4;
Given the code above, what will `numbers.length` return?
4
5
undefined
null
x = ["y", "z"]; console.log(typeof x);
What prints to the console?
"object"
"array"
var myString = "This is a string!"; myString.length;
True or false: In this example, `length` is an own property on `myString`.
var protoFrog = { // some properties }; var greenFrog = Object.create(protoFrog);
How might you visually depict the prototype chain of `greenFrog`?
greenFrog --> protoFrog --> Object.prototype --> null
greenFrog --> protoFrog.prototype --> Object.prototype --> null
greenFrog --> Object.prototype --> null
none of these