AlfatArdiansa

Codewars w Sandhika 10

Oct 31st, 2020
614
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const noSpace = (x) => x.split(" ").join("");
  2.  
  3. console.log(noSpace("8 j 8   mBliB8g  imjB8B8  jl  B"), "8j8mBliB8gimjB8B8jlB");
  4. console.log(noSpace("8 8 Bi fk8h B 8 BB8B B B  B888 c hl8 BhB fd"), "88Bifk8hB8BB8BBBB888chl8BhBfd");
  5. console.log(noSpace("8aaaaa dddd r     "), "8aaaaaddddr");
  6.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×