SyntaxFix
Write A Post
Hire A Developer
Questions
Use document.title:
document.title
console.log(document.title)
<title>Title test</title>
MDN Web Docs