Skip to content

Latest commit

 

History

History
54 lines (25 loc) · 924 Bytes

Week-2.md

File metadata and controls

54 lines (25 loc) · 924 Bytes

Week 1 Assessment

These are potential interview questions. Try your best to answer each question on your own before looking up the answer online.

1. Name all of the data types in Javascript, mark which are primitives.

//Your Answer

//Googled Answer

2. Look at this Javascript and try to predict, what will the browser's console show?

var text = 'outside';
function logIt(){
    console.log(text);
    var text = 'inside';
};

logIt();

first Guess:

Then, past the code in your console and explain why you were right/wrong.

3. What is JSON? How does it relate to javascript objects?

//Your Answer

//Googled Answer

4. Describe a closure, what is it good for and how do you recognize one?

//Your Answer

//Googled Answer

5. What's the difference between =, ==, and === in JavaScript?

//Your Answer

//Googled Answer