{
"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",
" | Time | // names the columns \n",
" All-time Cases | \n",
" Recorded Deaths | \n",
" Active Cases | \n",
"
// new row\n",
" \n",
" // setting the data for each cell \n",
" | \n",
" | \n",
" | \n",
" | \n",
" \n",
"
\n",
"\n",
"\n",
" \n",
" \n",
" | Country | \n",
" All-time Cases | \n",
" Recorded Deaths | \n",
" Active Cases | \n",
"
\n",
" \n",
" // setting the body of the table to be the \"result\" data from the API\n",
" \n",
" \n",
"
// 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
}