Challenge: Validate Arguments

This challenge will test your skills in implementing "typeof" operator in JavaScript.

Problem statement #

The concat function takes two strings and adds them together. Your task includes implementing this functionality and validating the function arguments as well. You need to check for the following cases:

  • Case 1: is string1 defined?

  • Case 2: is string2 defined?

  • Case 3: ...