Last active
July 2, 2020 05:59
-
-
Save HADMARINE/2f2a59763f5baeecba3f077687d97175 to your computer and use it in GitHub Desktop.
G....'s Not Unix!!!
This file contains 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
function gnus_not_unix(str){ | |
return str.replace(/GNU/gi, 'GNU\'s Not Unix') | |
} | |
function gnu_iter(str,cnt){ | |
let _str = str; | |
for(let i = 0; i < cnt; i++){ | |
_str = gnus_not_unix(_str); | |
} | |
return _str; | |
} | |
console.log(gnu_iter("GNU", 10)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Working at Node.js