JavaScript Quiz

You are 0% ninja in JavaScript

JavaScript Questions.

1. What's the output?

let c = { greeting: "Hey!" }; let d;
d = c;
c.greeting = "Hello"; console.log(d.greeting);

2. What happens when we do this?

function bark() { console.log("Woof!"); }
bark.animal = "dog";

3. All object have prototypes.

4. The JavaScript global execution context creates two things for you: the global object, and the "this" keyword.