hananiyaaki / han

0 stars 0 forks source link

JavaScript #3

Open hananiyaaki opened 3 weeks ago

hananiyaaki commented 2 weeks ago

const bookSeeker = "James"; const book = "Great Expectations"; function library() { const librarian = "Julia"; console.log(bookSeeker + " asked " + librarian + " for " + book); function classicLiterature() { const shelf = "Dickens"; console.log( bookSeeker + " found " + book + " on the " + shelf + " shelf!"); } classicLiterature(); } function cat() { console.log(meow(2)); const meow = function (max) { let catMessage = ''; for (let i = 0; i < max; i++) { catMessage = 'meow '; } return catMessage; }; function purr() { return 'purrrr!'; } }

cat();