function displayTable(data){ 
    tbody.text("")
    data.forEach(function(ufoSighting){
    var row = tbody.append("tr")
    Object.entries(ufoSighting).forEach(function([key, value]){
        var cell = row.append("td").text(value)	
    })
})}
//loop and add to the table in html
loop and add to the table in html
loop and add to the table in html
function displayTable(data){ 
    tbody.text("")
    data.forEach(function(ufoSighting){
    var row = tbody.append("tr")
    Object.entries(ufoSighting).forEach(function([key, value]){
        var cell = row.append("td").text(value)	
    })
})}
function displayTable ( data ) { tbody . text ( "" ) data . forEach ( function ( ufoSighting ) { var row = tbody . append ( "tr" ) Object . entries ( ufoSighting ) . forEach ( function ( [ key , value ] ) { var cell = row . append ( "td" ) . text ( value ) } ) } ) }
loop and add to the table in html
loop and add to the table in html