Question: Assume the variable myNumber holds a string consisting of 10 digits. What will this command output?

  1. It will only match digits?and since the string has only digits, the command will output the same number without changes.
  2. It will output the same 10-digit number, but every digit will be inside parentheses.
  3. It will output the entire 10-digit number inside parentheses.
  4. It will output the same 10-digit number, but the first 3 digits will be inside parentheses.

Answer: The correct answer of the above question is Option D:It will output the same 10-digit number, but the first 3 digits will be inside parentheses.