Skip to content

Instantly share code, notes, and snippets.

@arrbxr
Created March 29, 2018 15:05
Show Gist options
  • Select an option

  • Save arrbxr/9893d92f3e5fec980bf0d3973574f69a to your computer and use it in GitHub Desktop.

Select an option

Save arrbxr/9893d92f3e5fec980bf0d3973574f69a to your computer and use it in GitHub Desktop.
Udacity Quiz Laugh it of created by arrbxr - https://repl.it/@arrbxr/Udacity-Quiz-Laugh-it-of
function laugh(num){
var j = [];
for(var i = 1; i <= num; i++){
j += "ha";
if(i == num){
j+= "!";
}
}
console.log(j);
}
laugh(8);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment