Last active
November 7, 2019 23:05
-
-
Save masautt/263c7d773469e4f5ebced7e96a8045fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"total" : 0, | |
"lastUpdated" : "Thu, 07 Nov 2019 22:55:15 GMT" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"question": "What is closure in JavaScript?", | |
"answer": | |
"Closure is when a function is able to remember and access its lexical scope even when that function is executing outside its lexical scope.", | |
"tags": ["javascript", "programming-fundamentals"], | |
"type": "definition", | |
"sources": [ | |
{ | |
"name": "How do JavaScript closures work?", | |
"site": "stack-overflow", | |
"link": "https://stackoverflow.com/questions/111102/how-do-javascript-closures-work" | |
}, | |
{ | |
"name": "Nitty Gritty - You Don't Know JS", | |
"site": "github", | |
"link": "https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/scope-closures/ch5.md#nitty-gritty" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"question": "What is strict mode in JavaScript?", | |
"answer": | |
"The \"use strict\" string literal was introduced in ESCMScript 5. When included in a scope, errors are thrown for insecure coding practices like assigning values to undeclared variables. The this keyword does not traverse up the functional scope to the global object when it is undefined.", | |
"tags": ["javascript"], | |
"type": "definition", | |
"sources": [ | |
{ | |
"name": "What does \"use strict\" do in JavaScript, and what is the reasoning behind it?", | |
"site": "stack-overflow", | |
"link": "https://stackoverflow.com/questions/1335851/what-does-use-strict-do-in-javascript-and-what-is-the-reasoning-behind-it" | |
}, | |
{ | |
"name": "Strict Mode — \"use strict\" - Beau teaches JavaScript", | |
"site": "youtube", | |
"link": "https://www.youtube.com/watch?v=uqUYNqZx0qY" | |
}, | |
{ | |
"name": "Strict Mode - You Don't Know JS", | |
"site": "github", | |
"link": "https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/getting-started/ch2.md#strict-mode" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"question": "What is the \"this\" keyword in JavaScript?", | |
"answer": | |
"\"this\" refers to a binding that is made when a function is invoked, and what it references is determined entirely by the call-site where the function is called.", | |
"tags": ["javascript"], | |
"sources": [ | |
{ | |
"name": "How does the \"this\" keyword work?", | |
"site": "stack-overflow", | |
"link": "https://stackoverflow.com/questions/3127429/how-does-the-this-keyword-work" | |
}, | |
{ | |
"name": "JavaScript for Developers 38 - Understanding the this keyword", | |
"site": "youtube", | |
"link": "https://www.youtube.com/watch?v=URVdQG96MUw" | |
}, | |
{ | |
"name": "What's this? - You Don't Know JS", | |
"site": "github", | |
"link": "https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/this-object-prototypes/ch1.md#whats-this" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment