Detect when your site is visible to users

tipjs,web_developer

document.onvisibilitychange = function () {
          document.visibilityState === "visible"
             ? (document.title = "👋 Hello")
             : (document.title = "😟 Bye!");
       };

Có thể bạn đã miss một số snippets code

Async await in javascript

Async await in javascript

Object.keys và Object.getOwnPropertyNames

Object.keys và Object.getOwnPropertyNames

Làm phẳng mảng dùng phương pháp đệ quy

Làm phẳng mảng dùng phương pháp đệ quy

Converting Object to an Array

Converting Object to an Array

Lấy tháng hiện tại trong javascript

Lấy tháng hiện tại trong javascript