Master AI & Build your First Coding Portfolio with SkillReactor | Sign Up Now

Lesson 6 - Basic String Operations

6.5 Concat

If you're looking for a function to combine multiple strings, use the concat() function.

const firstName = "John";
const lastName = "Doe";
const fullName = firstName.concat(" ", lastName);

In the above example, we combined the firstName and lastName using the function concat().