The command to check the third character of my name is “k” will be *
if(n.charAt(3)==”k”)
if(n.charAt(2)==’k’)
if(n.charAt(2)==”k”)
if(n.charAt(3)==’k’)
Answers
Answered by
0
Answer:
2. if (n.charAt(2) = = 'k')
Answered by
1
The command used to check the third character of my name is 'k' will be,
if(n.charAt(2)=='k')
Note:- Index number starts with 0, so the third character index is 2.
Similar questions