Skip to content

Instantly share code, notes, and snippets.

@cesardpaz
Created August 24, 2022 17:45
Show Gist options
  • Save cesardpaz/05120674d1aed93770cb8d1f3a470132 to your computer and use it in GitHub Desktop.
Save cesardpaz/05120674d1aed93770cb8d1f3a470132 to your computer and use it in GitHub Desktop.
js create array javascript of string, explode
var pizza = "porción1 porción2 porción3 porción4 porción5 porción6";
var porciones = pizza.split(' ');
document.write(porciones[2]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment