This commit is contained in:
Karan 2021-11-25 19:54:48 +05:30 committed by GitHub
parent 90e4a5b9b8
commit 3b93b0d00f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +0,0 @@
let val = "I love JavaScript";
val = val.toLowerCase();
let vowels = ["a","e","i","o","u"];
vowels.forEach((letter,index) =>{
console.log(letter);
val = val.replaceAll(letter,index)
})
console.log(val);