CIW
1D0-635 · Question #6
Consider the following code: What needs to be changed to allow this script to run without error?
The correct answer is C. Change the characterAt method call to charAt. See the full explanation below for the reasoning.
Question
Consider the following code:
What needs to be changed to allow this script to run without error?
Exhibit
Options
- AChange the substring method call to substr
- BChange the substring method call to substr()
- CChange the characterAt method call to charAt
- DChange the characterAt method call to characterat
How the community answered
(26 responses)- A8% (2)
- B4% (1)
- C85% (22)
- D4% (1)
Community Discussion
No community discussion yet for this question.
