Which operation in strings is used to concatenate two strings?

  • append()
  • insert()
  • concat()
  • concatenate()
Option 3, concat(), is used to concatenate two strings. In many programming languages such as Java and JavaScript, this operation is represented by the '+' operator or specific functions/methods like concat(). It joins the contents of two strings into a single string.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *