Programa JavaScript para ilustrar a função split ()
// JavaScript Program to illustrate split() function
const text = "Welcome to JavaScript Tutorial - ItsJavaScript";
// split the text with space
let result = text.split(" ");
console.log(result);
// Output: [ 'Welcome', 'to', 'JavaScript', 'Tutorial', '-', 'ItsJavaScript' ]
Gorgeous Gazelle