Skip to content

Instantly share code, notes, and snippets.

@willie-hung
Created August 3, 2023 19:35
Show Gist options
  • Save willie-hung/687a5ef2512323e3233712625d1e75cd to your computer and use it in GitHub Desktop.
Save willie-hung/687a5ef2512323e3233712625d1e75cd to your computer and use it in GitHub Desktop.
post_33
const firstFunction = () => {
console.log("Hello from the first function");
};
const secondFunction = () => {
setTimeout(() => {
console.log("Hello from the second function");
}, 1000);
};
const thirdFunction = () => {
console.log("Hello from the third function");
};
firstFunction();
secondFunction();
thirdFunction();
// Output:
// Hello from the first function
// Hello from the third function
// Hello from the second function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment