Is their a JavaScript Equivalent to PHP explode()?

The JavaScript equivalent to PHP explode() is split(). To get the data after the first colon, try to run the following code.

Example


   
      
   
Updated on: 2020-01-23T07:05:08+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements