Skip to content

Instantly share code, notes, and snippets.

@nola
Created November 28, 2013 03:54
Show Gist options
  • Select an option

  • Save nola/7687043 to your computer and use it in GitHub Desktop.

Select an option

Save nola/7687043 to your computer and use it in GitHub Desktop.
The following statement creates an object and assigns it to the variable x if and only if the expression cond is true:
if (cond) var x = {hi: "there"};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment