If I have a checkbox and decide I need for it to throw a boolean when it is clicked, how would I do that? Would I use the onclick method or would I use data-js to change the var? I'm new to programming and am confused.
Checkbox:
<input id="private-player" type="checkbox" style="margin-right: 5px;" />