function headerRow (){
    //row
    let hedRow =document.createElement('tr');
    table.appendChild(hedRow);
   
    let thElement = document.createElement ('th')
   hedRow.appendChild(thElement);
    thElement.textContent ='locations';
    

    //push hour array to header raw :
    for(let i=0 ; i<hours.length ; i++){
       let thElement2 = document.createElement('th');
        hedRow.appendChild(thElement2);
        thElement2.textContent = hours[i]
        }

         let thElement3=document.createElement('th');
        hedRow.appendChild(thElement3);
        thElement3.textContent= 'Daily Location Total';
       
        

    
}
//create  function for header row of table with hours 
create  function for header row of table with hours
create function for header row of table with hours
function headerRow (){
    let hedRow =document.createElement('tr');
    table.appendChild(hedRow);
    let thElement = document.createElement ('th')
   hedRow.appendChild(thElement);
    thElement.textContent ='locations';
    for(let i=0 ; i<hours.length ; i++){
       let thElement2 = document.createElement('th');
        hedRow.appendChild(thElement2);
        thElement2.textContent = hours[i]
        }
         let thElement3=document.createElement('th');
        hedRow.appendChild(thElement3);
        thElement3.textContent= 'Daily Location Total';
}
function headerRow ( ) { let hedRow = document . createElement ( 'tr' ) ; table . appendChild ( hedRow ) ; let thElement = document . createElement ( 'th' ) hedRow . appendChild ( thElement ) ; thElement . textContent = 'locations' ; for ( let i = 0 ; i < hours . length ; i ++ ) { let thElement2 = document . createElement ( 'th' ) ; hedRow . appendChild ( thElement2 ) ; thElement2 . textContent = hours [ i ] } let thElement3 = document . createElement ( 'th' ) ; hedRow . appendChild ( thElement3 ) ; thElement3 . textContent = 'Daily Location Total' ; }
create  function for header row of table with hours
create function for header row of table with hours
//row //push hour array to header raw :