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

Async await in javascript

Async await in javascript

Extend Object javascript

Extend Object javascript

encode/decode base64 with JS

Encoding to base64 is done with the btoa command

await axios get

await axios get

Callback in javascript

Callback in javascript