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
Random String
Random String với độ dài tuỳ chọn
JavaScript: async/await with forEach
JavaScript: async/await with forEach()
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
Getting the last element of a split string array
Getting the last element of a split string array
Object.keys và Object.getOwnPropertyNames
Object.keys và Object.getOwnPropertyNames