vowel check in javascript
// check the word is vowel or not
let words = "aeiou";
let newWords = "";
function isVowelOrNot(words) {
for (let word of words) {
if (
word === "a" ||
word === "e" ||
word === "i" ||
word === "o" ||
word === "u"
) {
newWords = newWords + word;
}
}
if (newWords === words) {
return true;
} else {
return false;
}
}
let result = isVowelOrNot(words);
console.log(result);
Also in JavaScript:
- angular get current route
- archiver compressed file in nodejs
- angular router navigate
- jquery table row calculation
- if alternative javascript
- javascript closure function example
- number to float js
- how to access the second class of an element javascript
- pdf.js change background color
- react native backgrunde img
- js revers string fucntion
- js date of yesterday
- async and await
- react link to another page
- capitalise first letter js
- user defined exceptions in js
- check browser locale javascript
- js for each item in array
- ui5 React bind element
- Itsycal homebrew
- javascript convert string to json object
- js html
- javascript virtual assistant scrip[t
- get actual url in variable