Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Can anyone help me how I can able to make charAt() for multiple characters.

1 Answer

0 votes
by (26.7k points)

You can use the slice() method for multiple characters and also if you want a portion of string:

let string = 'Hello World'

console.log(string.slice(2, 6)); 

I hope this will help.

Want to become a Java Expert? Join Java Course now!!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
4 answers
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...