spliot() code example
Example 1: in javascript how to split string
var str = 'It iS a 5r&e@@t Day.'
var array = str.split(" ");
print(array);
var str = 'It iS a 5r&e@@t Day.'
var array = str.split(" ",2);
print(array);
Example 2: how to split word in python
text= "I am Batman"
splitted_text= text.split()
Print(splitted_text)