Created
September 26, 2017 11:18
-
-
Save gpbaculio/2d8786f7919c05261a9568825850cc32 to your computer and use it in GitHub Desktop.
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
var aString = "I am a string" | |
var aNumber = 1; | |
var aType = typeof aNumber; | |
var aFunction = function () { | |
return "A value"; | |
} | |
var foo = aFunction(); | |
var aBoolean = true; | |
var aNull = null; | |
var anArray = [1,2,3]; | |
var anObject = { | |
firstProperty: 'A property of anObject', | |
secondProperty: 2 | |
} | |
var { firstProperty: changePropertyName } = anObject; | |
var { firstProperty } = anObject; | |
var oneOrTwo = true ? 1 : 2; | |
var truthy = Boolean(aString); | |
var choosy = aNumber || aString; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment