Created
December 22, 2016 06:27
-
-
Save gracefullight/b2c9d723e47e4a7713fff20d6073b6d0 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
// JavaScript syntax to set a default value | |
var text = someString || "default text"; | |
var text2 = someString || someString2 || "default text2"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment