Courses / JavaScript
27. String.prototype.concat()
Combines two or more strings and returns a new string.
1 min read Chapter 27 of 99
JavaScript
String.prototype.concat()
String.prototype.concat() combines multiple strings into one new string.
"I need to join several pieces of text together for display."
String.prototype.concat() is a method that allows you to merge two or more strings into a single string, returning a new string without modifying the original strings.
"I need to join several pieces of text together for display."
String.prototype.concat() is a method that allows you to merge two or more strings into a single string, returning a new string without modifying the original strings.