Property attributes: It accepts a “String” which is not Writable, Enumerable, and Configurable.
Return value: It returns a string that is split from the given expression.
Example 1: In this example, we will split the string and add (“”) in it.
"'Geeks' 'for' 'Geeks'" "'' 'Geeks' '1Geeks2Geeks3Geeks4'"
Example 2: In this example, we will split the string and add (_) in it.
_Geeks__for__Geeks_ _Computer__ __Science Portal_
- Google Chrome 51
- Firefox 50
- Edge 15
- Apple Safari
Please Login to comment...