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

Await in a for loop

How to Await in a for loop

Getting the last element of a split string array

Getting the last element of a split string array

kiểm tra email trong javascript

kiểm tra email trong javascript

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

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

Async await in javascript

Async await in javascript