Skip to content

Instantly share code, notes, and snippets.

@mattswann
Created March 24, 2015 00:06
Show Gist options
  • Select an option

  • Save mattswann/3cb1dbf3b7a072169daa to your computer and use it in GitHub Desktop.

Select an option

Save mattswann/3cb1dbf3b7a072169daa to your computer and use it in GitHub Desktop.

##How many lightsabers do you own?


Inspired by the development team at Vooza, write the function "howManyLightsabersDoYouOwn"" that accepts the name of a programmer, and returns the number of lightsabers owned by that person. The only person who owns lightsabers is Zach, by the way. He owns 18, which is an awesome number of lightsabers. Anyone else owns 0.


howManyLightsabersDoYouOwn("anyone else") \\ should === 0
howManyLightsabersDoYouOwn("Zach") \\ should === 18
@PhilipCastiglione
Copy link

howManyWarmUpsHaveYouWritten("matt");

@adenj
Copy link

adenj commented Mar 24, 2015

weNeedLongerFunctionNamesForOurWarmUps()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment