Created
July 19, 2018 15:02
-
-
Save kentcdodds/a95990593acb9db51e419ce8ba3e34de to your computer and use it in GitHub Desktop.
Code for this DevTipsWithKent: https://www.youtube.com/watch?v=jWllMubtfPQ&list=PLV5CVI1eNcJgCrPH_e6d57KRUTiDZgs0u
This file contains 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
console.log(this === module.exports) | |
fn() | |
strictFn() | |
function fn() { | |
console.log('in function', this === global) | |
} | |
function strictFn() { | |
'use strict' | |
console.log('in strict function', this === undefined) | |
} | |
// info to answer questions I always get | |
// no matter how many times I answer: | |
// extension: Quokka | |
// font: Dank Mono | |
// theme: Night Owl | |
// see kcd.im/mft for links |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment