Skip to content

Instantly share code, notes, and snippets.

@wdiasvargas
Created April 24, 2018 14:25
Show Gist options
  • Select an option

  • Save wdiasvargas/0e7cc93708b263006bcd667e897dc288 to your computer and use it in GitHub Desktop.

Select an option

Save wdiasvargas/0e7cc93708b263006bcd667e897dc288 to your computer and use it in GitHub Desktop.

Revisions

  1. wdiasvargas created this gist Apr 24, 2018.
    5 changes: 5 additions & 0 deletions 1.2.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    var feira = "Fui no mercado comprar: caqui, limao, pera, morango, abacaxi.";
    var comeco = feira.indexOf(':');
    var final = feira.indexOf('.', comeco+1);
    var lista = feira.substring(comeco+1, final);
    console.log(lista)