             taskDisplay().innerHTML
                    = `${t.priority} priority task ${t.name} with description "${t.description}"`
            )
        }

        function deleteTask(name) {
            deleteTaskWithName(name).then(() => {
                clearTaskDisplay();
                displayAllTasks();
            })
        }

        function deleteTaskWithName(name) {
            return sendDELETE(`/tasks/${name}`)
        }

        function addNewTask() {
            const task = buildTask