Question: Assume the variable myNumber holds a string consisting of 10 digits. What will this command output?
- It will only match digits?and since the string has only digits, the command will output the same number without changes.
- It will output the same 10-digit number, but every digit will be inside parentheses.
- It will output the entire 10-digit number inside parentheses.
- 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.