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
Callback in javascript
Callback in javascript
try/catch es10
An update for developer convience allows the use of try/catch without an explicit e Error reference in the catch call.
Lấy tháng hiện tại trong javascript
Lấy tháng hiện tại trong javascript
So sánh hai array trong javascript
Làm thế nào để đánh giá xem hai mảng có bằng nhau không? Có hai cách đó là sử dụng JSON.stringify() hoặc toString()
Spread Operator for Objects
Using the spread operator during an Object declaration will assign the properties of the referenced Object to the new Object.