Programa JavaScript para ilustrar la función 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