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
Getting the last element of a split string array
Getting the last element of a split string array
Random String
Random String với độ dài tuỳ chọn
Lấy ngày hiện tại trong javascript
Lấy ngày hiện tại trong javascript
How to reverse an Array?
Reversing an array in JS is really simple with the standard array method. Like below
Hàm lày ngày trong tuần javascript
Hàm lày ngày trong tuần javascript