Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Challenge 5

Basic challenges

  • Create a function that takes in a number as a parameter, and returns double the number
    • Test the function by asking the user for a number, running that number through the function, then printing the result

  • Create a function that takes in two numbers and returns the sum of those two numbers
    • Test the function by asking the user for two numbers, running those numbers through the function, then printing the result

More advanced

  • Create a function titled vowelCount that takes in a word as a parameter, then returns how many vowels are in that word
    • Test that function by allowing the user to enter a word, passing that word into the vowelCount function, then


Contributors: