UFO-level-1/static/js/app.js
// Loop through table using Object.entries
Loop through table using Object.entries
Loop through table using Object . entries
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 ) } ) } ) }
Loop through table using Object.entries
Loop through table using Object . entries