Created
August 10, 2019 17:16
-
-
Save catalint/0a97bb38d855dc893511f51c1fa9d8e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hi Jack https://www.youtube.com/watch?v=f1FV6AELDmA | |
let jackGotDrunk=[]; | |
jackGotDrunk[197]='OoOPsie' | |
const AThousandJacks = (JSON.stringify(jackGotDrunk)+'....').replace(/./g,'Jack') | |
console.log(AThousandJacks) | |
console.log('Jack got drunk for how many times ?',AThousandJacks.match(/Jack/g).length) | |
console.log('Only Jack got drunk ?', AThousandJacks.length / "Jack".length === 1000 ? 'Yeee':'Neee') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment