Skip to content

Instantly share code, notes, and snippets.

@vinitshahdeo
Created February 22, 2021 21:24
Show Gist options
  • Save vinitshahdeo/380f19be7bf9e24c3fc88e87e1f6f375 to your computer and use it in GitHub Desktop.
Save vinitshahdeo/380f19be7bf9e24c3fc88e87e1f6f375 to your computer and use it in GitHub Desktop.
What came first, the chicken or the egg?
/**
* Please use any online IDE or browser's console to see the output
* Link to online IDE: https://repl.it/languages/nodejs
*
*/
const chicken = () => egg();
const egg = () => chicken();
console.log(`${chicken()} came first`);
// ...and the debate continues!
@praveenscience
Copy link

No I am not running this code and getting my machine into an infinite loop! 🤣

@prathamesh-dukare
Copy link

No way 😭, @praveenscience i thought it's ended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment