daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest May 16th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function recortar(){
  2.    var logitud = 20;
  3.    var dato = "texto largo";
  4.    var datoAMostrar = "";
  5.  
  6.    for(var i = 0; i < logitud; i++)
  7.        datoAMostrar = datoAMostrar + dato[i];
  8.  
  9.    datoAMostrar = datoAMostrar + "...";
  10.  
  11. }
RAW Paste Data
Top