Whatfix Interview Question

Dom manipulations in JavaScript?