Skip to content

Instantly share code, notes, and snippets.

@koenverburg
Created May 29, 2017 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koenverburg/c90a8f8c374f9e5ca640a2e6407ddb65 to your computer and use it in GitHub Desktop.
Save koenverburg/c90a8f8c374f9e5ca640a2e6407ddb65 to your computer and use it in GitHub Desktop.
a little script from a post on devrant
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