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

Extend Object javascript

Extend Object javascript

Await in a for loop

How to Await in a for loop

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

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

Đếm có bao nhiêu items giống nhau trong một array

reduce javascript. Đếm có bao nhiêu items giống nhau trong một array

group by property javascript use reduce

group by property javascript use reduce