-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal-index.js
30 lines (24 loc) · 950 Bytes
/
local-index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const instructions =
[
{ name: 'Project By: Sarthak Gupta' },
{ name: '\nThe goal is to leave you with helpful resources to stay up to date with COVID Developments' },
{ name: '\nClick on the different boxes above to explore cool resources such as stats, news, and safety tips!' },
{ name: '\nEnjoy my first web app ever which I built using html and javascript and deployed using Azure \n' },
]
//creating method displayInstructions to run a for each loop and run through and display each element in 'instructions'
function displayInstructions()
{
for (let instruction of instructions)
{
const instUI = document.createElement('li');
instUI.className = 'list-group-item';
instUI.innerText = instruction.name;
document.getElementById('instructions-list').appendChild(instUI);
}
}
async function main()
{
//Calling displayInstructions method
displayInstructions();
}
main();