static/js/app.js
// and loop through them to add to the table in html
and loop through them to add to the table in html
and loop through them to add to the table in html
function displayData(data){ 
    tbody.text("")
    data.forEach(function(sighting){
    new_tr = tbody.append("tr")
    Object.entries(sighting).forEach(function([key, value]){
        new_td = new_tr.append("td").text(value)	
    })
})}
function displayData ( data ) { tbody . text ( "" ) data . forEach ( function ( sighting ) { new_tr = tbody . append ( "tr" ) Object . entries ( sighting ) . forEach ( function ( [ key , value ] ) { new_td = new_tr . append ( "td" ) . text ( value ) } ) } ) }
and loop through them to add to the table in html
and loop through them to add to the table in html