How to check/uncheck checkbox using JavaScript

There are many ways to make a selection in a webpage  such as radio button, checkbox etc. Here we have methods to interact with a checkbox or a radio button using JavaScript. Check the readymade functions to know how to check/uncheck checkbox using javascript or how to select a radio button using javascript.

How to select date from Date picker

How to Select Radio group

How to Select autocomplete value

How to Set a switch

How to check Checkbox