fluence-js/src/examples/todo-list/index.js
function createNewTask(task) {
        console.log("Creating task...");

        //set up the new list item
        const listItem = document.createElement("li");
        const checkBox = document.createElement("input");
        const label = document.createElement("label");


        //pull the inputed text into label
        label.innerText = task;

        //add properties
        checkBox.type = "checkbox";

        //add items to the li
        listItem.appendChild(checkBox);
        listItem.appendChild(label);
        //everything put together
        return listItem;
    }
function createNewTask(task) {
        console.log("Creating task...");

        //set up the new list item
        const listItem = document.createElement("li");
        const checkBox = document.createElement("input");
        const label = document.createElement("label");


        //pull the inputed text into label
        label.innerText = task;

        //add properties
        checkBox.type = "checkbox";

        //add items to the li
        listItem.appendChild(checkBox);
        listItem.appendChild(label);
        //everything put together
        return listItem;
    }
function createNewTask ( task ) { console . log ( "Creating task..." ) ; //set up the new list item const listItem = document . createElement ( "li" ) ; const checkBox = document . createElement ( "input" ) ; const label = document . createElement ( "label" ) ; //pull the inputed text into label label . innerText = task ; //add properties checkBox . type = "checkbox" ; //add items to the li listItem . appendChild ( checkBox ) ; listItem . appendChild ( label ) ; //everything put together return listItem ; }
create functions creating the actual task list item
create functions creating the actual task list item