+ operator is used to concatenate the strings in JavaScript:
1
2
3
4
5
6
|
<script>
var FirstName = 'Saurabh';
var LastName = 'Sharma';
var FullName = FirstName + " " + LastName;
document.write(FullName);
</script>
|