SHARE
TWEET

Untitled

a guest May 24th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var str = "B I O S T A L L"  
  2. str = str.replace(/\s/g,'');  
  3. // Outputs 'BIOSTALL'
  4.  
  5. //or whatever
  6. var str = "B I O S T A L L"  
  7. str = str.replace(/\s/g,'-');  
  8. // Outputs 'B-I-O-S-T-A-L-L'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top