todo.js
//prints a task on index.html by spitting html

prints a task on index.html by spitting html
prints a task on index . html by spitting html
function printTask()
{
    getFromStorage(function(tasks){
        let html = "";
        $("#tasks").empty();    
        tasks.forEach(task => html = `${html}
        <li class="${task.done ? "complete" : "incomplete"}">
        <input ${task.done ? "checked" : ""} class="done" type="checkbox">
        ${task.name}
        <button class="delete">Delete</button>
        </li>`);
        ul.insertAdjacentHTML("beforeend", html);   
    });
}
function printTask ( ) { getFromStorage ( function ( tasks ) { let html = "" ; $ ( "#tasks" ) . empty ( ) ; tasks . forEach ( task => html = ` ${ html } ${ task . done ? "complete" : "incomplete" } ${ task . done ? "checked" : "" } ${ task . name } ` ) ; ul . insertAdjacentHTML ( "beforeend" , html ) ; } ) ; }
prints a task on index.html by spitting html
prints a task on index . html by spitting html
//the getFromStorage() function gets previous task from chrome storage
 //empties out the task array
 //prints out a new task inside <ul></ul>
 //new task stacks on top
