What does the code snippet to the right output by console.log?
console.log
const arr = ['a', 'b', 'c', '1'] const regExp = /^[a-z]$/gi const chars = arr.filter(elem => regExp.test(elem)) console.log(chars)
Source Fromopen in new window