<html>
<body>
<p>The + operator concatenates (adds) strings.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var text1 = "Good ";
var text2 = "Morning";
text1 += text2
document.getElementById("demo").innerHTML = text1;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_oper_string2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:32 GMT -->
</html>