String to array
Return the given string in array format.
Sample Code:
function stringArr(str) {
// Enter your logic here...
}
Examples:
Input: 'Monday,Tuesday,Wednesday'
Output: ['Monday','Tuesday','Wednesday']
Explanation: Each element is separated by a comma.
Input: 'ReactJS,NodeJS,Postgres'
Output: ['ReactJS','NodeJS','Postgres']
Explanation: Each element is separated by a comma.