asked 57.2k views
2 votes
Given a variable named 'name' that has been initialized with a string, write an expression that evaluates to the third character in 'name'. a) name[3] b) name(3) c) name.charAt(3) d) name[2]

asked
User Oberbaum
by
8.0k points

1 Answer

7 votes

Answer:

charAt(3)

Step-by-step explanation:

charAt as it is the third

answered
User Mlovic
by
8.6k points