Skip to content

Instantly share code, notes, and snippets.

@unknownuser88
Created January 6, 2014 13:23
Show Gist options
  • Save unknownuser88/8282822 to your computer and use it in GitHub Desktop.
Save unknownuser88/8282822 to your computer and use it in GitHub Desktop.
concat(v1, v2,…) Combines one or more strings (arguments v1, v2 etc) into the existing one and returns the combined string. Original string is not modified
//concat(v1, v2,..)
var message="Sam"
var final=message.concat(" is a"," hopeless romantic.")
//alerts "Sam is a hopeless romantic."
alert(final)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment