Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 610 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 610 Bytes

Exercise_8

#Recursion (part 2) exercise

##Chirp

run chirp.html
edit js/chirp.js

  • define a function named chirp() that takes a single argument 'n'
  • calling chirp(3) will return the text "chirp chirp chirp"
  • chirp will call itself, each time returning "chirp "

##Letter counter

run letters.html
edit js/letters.js

  • define a function named countLetters() that takes two arguments 'counter' and 'text'
  • calling countLetters(counter, sample_text) will populate the counter object with a count of how many times letters occur
  • countLetters will call itself until all letters are counted