Skip to content

Instantly share code, notes, and snippets.

@panta82
Created November 12, 2014 09:17
Show Gist options
  • Save panta82/0fd82528394963514ef0 to your computer and use it in GitHub Desktop.
Save panta82/0fd82528394963514ef0 to your computer and use it in GitHub Desktop.
var str = "A";
mutate(str);
str += "C";
console.log(str);
function mutate(str) {
str += "B";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment