This commit is contained in:
Karan 2021-11-25 19:59:13 +05:30 committed by GitHub
parent a9686fba19
commit a18ca66347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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