String Concatenation

Combine two strings using the + operator.

Preview

Code

<script>
let firstName = "John";
let lastName = "Doe";

let fullName = firstName + " " + lastName;
console.log(fullName);
</script>

More JS Strings Examples (7)