document.querySelector(".checkbox-container").addEventListener("click", () => {
let checked = document.querySelector(".example").checked;
let label = document.querySelector(".check-text");
// Pick your own unicode character if you want to
if (checked) label.textContent = "\u2610";
else label.textContent = "\u2705";
// Use value depending on how you want to process input
document.querySelector(".example").checked = !checked;
})