Guest User

Untitled

a guest
Jun 24th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. function teste_substring(){
  2. s1 = "Lucas";
  3. alert(s1);
  4. //Saída -> 'Lucas'
  5. s2 = s1.substring(1,4);
  6. alert(s2);
  7. //Saída -> 'uca'
  8. }
Add Comment
Please, Sign In to add comment