Day 2 (3rd November 2022 | Thursday)
Preparation material
JavaScript Overview
HTML Overview
Class material
Setup a new project and open in VS Code
Open Terminal and setup a new node project
This is a quick tutorial on how to work with JSON in JavaScript
Deepdive into npm!
Assignment
Parse the data and take an SRN as input, store it in the input variable, and console.log the corresponding name and attendance.
console.log the student names who have less than 50% attendance.
The following is the JSON data provided to you.
data.json
[
{
"name": "John",
"srn": "PES12012301049",
"attendance": "85%"
},
{
"name": "Tracy",
"srn": "PES12012301088",
"attendance": "45%"
},
{
"name": "Hugo",
"srn": "PES12012304505",
"attendance": "60%"
},
{
"name": "David",
"srn": "PES12012307947",
"attendance": "40%"
},
{
"name": "Bethany",
"srn": "PES12012304567",
"attendance": "35%"
},
{
"name": "Tim",
"srn": "PES12012309873",
"attendance": "90%"
}
]