Try to write all of the exercises using both the for
loop and while
loop.
- In the console or repl.it, try the following and verify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Write a function that takes 3 words and returns a single count of all their letters. | |
function combinedCharacterCount(word1, word2, word3){ | |
var together = word1 + word2 + word3; | |
return together.length; | |
} | |
// Below is a simple assert function and its invocation. Add this to your code and make sure that the test passes. |