Skip to content

Instantly share code, notes, and snippets.

@jonsamp
Created June 4, 2017 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonsamp/610ffb301cdf89da01f4cc930cadc072 to your computer and use it in GitHub Desktop.
Save jonsamp/610ffb301cdf89da01f4cc930cadc072 to your computer and use it in GitHub Desktop.
JavaScript Tips Tab: generateTip I
function generateTip() {
var tip = tipsList[generateNumber()];
}
@cziem
Copy link

cziem commented Oct 21, 2017

would you need to return the tip?

like function generateTip() { var tip = tipList[generateNumber()]; return tip; }

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