StarterCode/static/js/app.js
// get key, value data to the table and loop through to add 
get key, value data to the table and loop through to add
get key value data to the table and loop through to add
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 ) } ) } ) }
get key, value data to the table and loop through to add
get key value data to the table and loop through to add