Javascript Usage
Showing the use of javascript with a submenu.
Javascript Usage
JavaScript Usage | Random Word Generator | ||
RapidAPI Example | Covid API Example | Weather API |
Submenu:
I created a template with a table in _includes, which I imported into this page. In the table I have links to the things I did.
This is the line of code that imports the table:
Personal Javascript
I created a list of words with a const
and then I created a function that uses math to pick a word from that list and display it as a piece of text with document.getElementById
.
Here is my code:
Javascript Table
I attempted to create a Javascript table, however when I tried to create one, it gave me errors in the Jupyter Notebook. Because of this I switched to coding in a markdown post and using Google Inspect to debug my code. I was able to get a list in the console, but it refused to print because of errors that said Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')
.
Here is my code:
Here is the output I managed to get: