A Pen by Tyler Peterson on CodePen.
Created
September 27, 2018 15:44
-
-
Save tylerpeterson/530b4ccaeba6f13759c56d15fe302673 to your computer and use it in GitHub Desktop.
2018-09-27 Count 3 Beginning
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
| <!-- All this content is inserted into the <body> of your document. --> |
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
| /* | |
| First, on paper, write an html file that includes an external stylesheet, an external javascript script, and has any other boilerplate that you would normally include or consider. */ | |
| /*For the rest of the challenge, complete IN THIS PEN: | |
| Create a Javascript function that takes an array as a parameter and returns the count of items in the array that are multiples of three. Keep this function stand-alone. I.e. it should not know ANYTING about DOM.*/ | |
| /*Create a document that when loaded in the browser says "The count is blah."*/ | |
| /*Style "blah" (and ONLY "blah") bold and red (in an external stylesheet). */ | |
| /*Dynamically replace "blah" with the result of calling your function with the array [1, 3, 5, 7, 9]. Keep the "glue code" separate from the function you created. That is, keep your function stand-alone, as before. | |
| */ |
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
| /* Your CSS Here */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment