Skip to content

Instantly share code, notes, and snippets.

@tylerpeterson
Created September 27, 2018 15:44
Show Gist options
  • Save tylerpeterson/530b4ccaeba6f13759c56d15fe302673 to your computer and use it in GitHub Desktop.
Save tylerpeterson/530b4ccaeba6f13759c56d15fe302673 to your computer and use it in GitHub Desktop.
2018-09-27 Count 3 Beginning
<!-- All this content is inserted into the <body> of your document. -->
/*
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.
*/
/* Your CSS Here */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment