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
Hàm lày ngày trong tuần javascript
Hàm lày ngày trong tuần javascript
Merge Array
How to combine two sorted arrays into one? We can do this easily with the spread operator.
encode/decode base64 with JS
Encoding to base64 is done with the btoa command
Remove item in array javascript es6
Những bạn nào mà đã sử dụng ES6 một thời gian rồi thì có thể sử dụng method array.filter()
closure javascript
closure javascript