document.body in javascript code example
Example 1: reference body js
var body = document.getElementsByTagName("BODY")[0]; //bad way
document.body //good way
Example 2: represent body in javascript
// for defining body getElementyId or any other syntax won't be used and for that we have to write
document.body.style.backgroundColor = "yellow";