Home > Article > Web Front-end > Concat method instance of JavaScript string object (used to concatenate two or more strings)_Basic knowledge
JavaScript concat method
Theconcat method connects two or more strings, its syntax is as follows:
concat instance
Run this example, output:
www.jb51.net
Tip: It is usually more convenient to use the algorithm to connect strings. For details, see: "JavaScript Operators".