To flash title notification in Javascript ES6. we will use setInterval function.
setInterval
let showalert = false; const interval = setInterval(()=>{ document.title = showalert ? 'Chat Application' : '(1) New Message'; },1000);