Skip to content

Instantly share code, notes, and snippets.

@bradhe
Created October 19, 2012 22:22
Show Gist options
  • Select an option

  • Save bradhe/3921042 to your computer and use it in GitHub Desktop.

Select an option

Save bradhe/3921042 to your computer and use it in GitHub Desktop.
What do you think the output of this script is?
arr = []
my_variable = false
my_other_variable = true
arr << my_variable ? "This was true." : "This was false."
arr << my_other_variable ? "This was true." : "This was false."
p arr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment