Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
String.prototype.concat() Method in String Class of Javascript Syntax with Examples
2456 Views
Usage 
concat() function used to connect two strings or more than two strings.
Syntax
string1.concat(string2,string3,....)
Example
var firstName = "Steve";
var lastName = "smith";

//connect the firstName with lastName
var char1 = firstName.concat(lastName);
document.write("The string is"+char1+".");
Output 
The string is Stevesmith.
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details