{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Javascript API Webpage Hacks\n", "> Breaking up the code and describing what the code is doing." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "vscode": { "languageId": "javascript" } }, "outputs": [], "source": [ " \n", " // creates a table \n", " // sets up the heading \n", " // makes a row\n", " // names the columns \n", " \n", " \n", " \n", " // new row\n", " \n", " // setting the data for each cell \n", " \n", " \n", " \n", " \n", " \n", "
TimeAll-time CasesRecorded DeathsActive Cases
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " // setting the body of the table to be the \"result\" data from the API\n", " \n", " \n", "
CountryAll-time CasesRecorded DeathsActive Cases
// closes off the table\n", "\n", "\n", "" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3.9.12 ('base')", "language": "python", "name": "python3" }, "language_info": { "name": "python", "version": "3.9.12" }, "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "40d3a090f54c6569ab1632332b64b2c03c39dcf918b08424e98f38b5ae0af88f" } } }, "nbformat": 4, "nbformat_minor": 2 }