function createDataElement(data) {
    
    const covidDataElement = document.createElement('li');
    covidDataElement.className = 'covidData';
    
    
    const stateElement = document.createElement('span');
    stateElement.innerText = JSON.stringify(data.state);
    
    const casesElement = document.createElement('span');
    casesElement.innerText = " has " + JSON.stringify(data.actuals.cases) + " positive cases";

	
    covidDataElement.appendChild(stateElement);
  	covidDataElement.appendChild(casesElement);
    return covidDataElement;
}
/** Creates an element that represents a coviddata */
Creates an element that represents a coviddata
Creates an element that represents a coviddata
function createDataElement(data) {
    const covidDataElement = document.createElement('li');
    covidDataElement.className = 'covidData';
    const stateElement = document.createElement('span');
    stateElement.innerText = JSON.stringify(data.state);
    const casesElement = document.createElement('span');
    casesElement.innerText = " has " + JSON.stringify(data.actuals.cases) + " positive cases";
    covidDataElement.appendChild(stateElement);
  	covidDataElement.appendChild(casesElement);
    return covidDataElement;
}
function createDataElement ( data ) { const covidDataElement = document . createElement ( 'li' ) ; covidDataElement . className = 'covidData' ; const stateElement = document . createElement ( 'span' ) ; stateElement . innerText = JSON . stringify ( data . state ) ; const casesElement = document . createElement ( 'span' ) ; casesElement . innerText = " has " + JSON . stringify ( data . actuals . cases ) + " positive cases" ; covidDataElement . appendChild ( stateElement ) ; covidDataElement . appendChild ( casesElement ) ; return covidDataElement ; }
Creates an element that represents a coviddata
Creates an element that represents a coviddata