JavaScript mendapatkan kelas tubuh

document.body.classList.contains('my-class-name')
Dreamy bird