+2 votes
in Class 11 by kratos

Define strip ([chars]) with its syntax

1 Answer

+5 votes
by kratos
 
Best answer

The method strip( ) returns a copy of the string in which all chars have been stripped from the beginning and the end of the string (default whitespace characters)

Syntax: str.strip([chars]);

...