Created
May 29, 2017 08:57
-
-
Save koenverburg/c90a8f8c374f9e5ca640a2e6407ddb65 to your computer and use it in GitHub Desktop.
a little script from a post on devrant
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
function main() { | |
let a = "end"; | |
let b = "is near"; | |
let c = "dude"; | |
let output = `${b.substring(1,2)}${a} ${a.substring(1,2)}${c.substring(1, c.length)}${b.substring(1,2)}`; | |
console.log(output); | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment