function addToDone(message) {
    var node = document.createElement("LI");                 // Create a <li> node
    var textnode = document.createTextNode(message);         // Create a text node
    node.appendChild(textnode);                              // Append the text to <li>
    node.classList.add("finished");
    document.querySelector(".correct ul").appendChild(node);
    document.querySelector("#count").innerHTML = document.querySelectorAll('.finished').length + " of 101";
}
// Keep this function here in order to add correct questions to the counter
Keep this function here in order to add correct questions to the counter
Keep this function here in order to add correct questions to the counter
function addToDone(message) {
    var node = document.createElement("LI");                 
    var textnode = document.createTextNode(message);         
    node.appendChild(textnode);                              
    node.classList.add("finished");
    document.querySelector(".correct ul").appendChild(node);
    document.querySelector("#count").innerHTML = document.querySelectorAll('.finished').length + " of 101";
}
function addToDone ( message ) { var node = document . createElement ( "LI" ) ; var textnode = document . createTextNode ( message ) ; node . appendChild ( textnode ) ; node . classList . add ( "finished" ) ; document . querySelector ( ".correct ul" ) . appendChild ( node ) ; document . querySelector ( "#count" ) . innerHTML = document . querySelectorAll ( '.finished' ) . length + " of 101" ; }
Keep this function here in order to add correct questions to the counter
Keep this function here in order to add correct questions to the counter
// Create a <li> node // Create a text node // Append the text to <li>