JSFiddle - React, Tailwind, and code Playground

by mark47

HTML

<script src="http://d3js.org/d3.v3.min.js"></script>
<div id="one">This is a sentence!</div>

CSS

.div {
   }

JavaScript

var vowels = ['a','e','i','o','u'];
function disemvowel(targetSentence) {
    var origStr = $(targetSentence).text();
    $.each(vowels, function(index, value) {
        $(origStr).replace(value, '');
    });
    alert(origStr);
    return origStr;
}
var newStr = disemvowel('#one');
$('div').html(newStr);