Hi there -
When I run this code, I am getting extra commas and the values are not lining up. What am I doing wrong?
let vowels = “aeiou”
let sentence = “Your bumpkin is so beautiful”
let mda=
let fullsetofzeros =
var i
var j
for (i = 0; i < vowel.length; i++) { // p1
mda[i] = 0
}
for (i= 0; i < sentence.length; i++) { // p1
fullsetofzeros.push(mda)
}
output.text( Matrix of zeroes ${fullsetofzeros}
)
for (i= 0; i < vowel.length; i++) { // p1
for (j= 0; j < sentence.length; j++) { // p1
if (vowel.includes(sentence[j])) {
fullsetofzeros[i][j]= 1
}
}
}
output.text( Matrix after test ${fullsetofzeros}
)