Skip to main content
A. String Methods (Slicing, Center, Capitalize)
String Slicing Method
- Slicing refers to obtaining a sub-string from the given string.

String center() Method
- The center() method is used for filling default space or specified characters in a string by their length and replacing string in the center.

String capitalize() Method
- It returns the given string with capitalized the first character of a string.
Comments
Post a Comment