Get or set the document title

Get the document title

const title = document.title;

Set the document title

document.title = 'Hello World';
Previous
Get css styles of an element
Next
Get or set the html of an element