So, i been getting this kind of output lately when im coding but i just want to make sure its normal or maybe im doing something wrong. Here is a simple code.. maybe it has to do with regex.
my console says " (1) ['a', index: 1, input: 'karina', groups: undefined] "
function reg(s) {
reg = /[aeiou]/;
console.log(s.match(reg));
}
reg("turtle");