String Concatenation

String Concatenation

Tags: String Manipulation Basics

Credit: CodingChallenge

Difficulty: Beginner

Type: Text

Category: Practice

Time Allowed: 5 s

Description:

Write a function that takes two strings and returns a new string that is the concatenation of the two input strings. This problem is designed to help you practice string concatenation. The function should accept two parameters and return the concatenated string.

Constraints:

  • Both inputs will be strings.
  • The function should return a string that is the concatenation of the two inputs.

Example:

  • Input: "hello", "world"
  • Output: "helloworld"

Test Case Input Expected Output
1 ["hello", "world"] "helloworld"
2 ["foo", "bar"] "foobar"
3 ["", "empty"] "empty"
4 ["abc", "123"] "abc123"
5 [" ", "space"] " space"
6 ["concat", "enate"] "concatenate"
7 ["", ""] ""

Please register or login to submit solutions to challenges.