var all_checkbox = document.getElementById("gg_data_tags").querySelectorAll('input[type="checkbox"]')all_checkbox.forEach(function (item) {
item.checked = false
})this.result_player_two.classList.add("current-player")this.result_player_two.classList.add("current-player", "class_2", "class_3")```
## Remove Class from an element
```javascript
this.result_player_one.classList.remove("current-player")this.result_player_one.setAttribute("id", "my-id")this.result_player_one.setAttribute("data-score", "10")this.result_player_one.removeAttribute("class")this.result_player_two.classList.remove("class_2", "class_3")document.getElementById("checkbox").checked = true;```
## Force checkbox to uncheck
```javascript
document.getElementById("checkbox").checked = false;var sel_authors = new Array()
sel_authors.push("john", "mahbub", "alam", "khan") randomIntFromInterval(min, max) { // min and max included
return Math.floor(Math.random() * (max - min + 1) + min)
}const fruits = ["Banana", "Orange", "Apple", "Mango"]
let text = fruits.join()const numbers = [65, 44, 12, 4]
const newArr = numbers.map(myFunction)
function myFunction(num) {
return num * 10
}You can check more javascript example codes from here.