Skip to content

Instantly share code, notes, and snippets.

@ilmsg
Forked from jiristepan/chickenVsEgg.js
Created July 19, 2023 12:30
Show Gist options
  • Save ilmsg/8331356242ce634de4e24b199c2e93f3 to your computer and use it in GitHub Desktop.
Save ilmsg/8331356242ce634de4e24b199c2e93f3 to your computer and use it in GitHub Desktop.
Chicken egg problem solved by javascript
let question = ['🥚','🐔']
let answer = question.sort()
console.log(answer[0] + ' was first!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment