Guest User

Untitled

a guest
Mar 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. var name_full = 'John Doe'
  2. var name_array = name_full.split(' ');
  3.  
  4. alert(name_array[1].charAt(0)); // alerts 'D'
Add Comment
Please, Sign In to add comment