I continued my marijuana word cout project and created three pages. I didn't have time to figure out how to call my css stylesheet in servi, so I left it out. It looks very raw but the functions are working.
The first page shows the title of a webpage. The second one is just for fun. It lets you type in any keyword to show what you smoke. The third one shows snippets of three randomly chosen articles that have the word marijuana in its designated year.
This is looking good. You might think about making the
years
variable an object instead of an array. That way you could easily pull in the data for each year using a property. For example:Actually, since these are numbers and not strings, you also have the option of using the years as index numbers in an array, like this: