What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-13 20:25:38
how do i remove all vowels from a string in javascript and return the result
var strings = ["bongo drums", "guitar", "flute", "double bass", "xylophone","piano"]; string = strings.map(x=>x.replace( /[aeiou]/g, '' )); console.log(string); Add solution -
Javascript 2022-02-10 22:30:16
js strip multiple spaces
string = string.replace(/\s\s+/g, ' '); Add solution -
-
Javascript 2022-02-06 21:00:26
javascript create a function that counts the number of syllables a word has. each syllable is separated with a dash -.
function new_count(word) { word = word.toLowerCase(); //word.downcase! if(word.length <= 3) { return 1; } //return 1 if word.length <= 3 word = word.replace(/(?:[^laeiouy]es|ed|... Add solution -
Javascript 2022-02-05 15:10:12
jquery deparam
/** * jQuery.deparam - The oposite of jQuery param. Creates an object of query string parameters. * * Credits for the idea and Regex: * http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/ */ (function($){ $.d... Add solution
Best helpers
Ranking is empty