filter by checkbox

filter by checkbox

I am trying to filter an array by checkboxed, but the console.log did not display anything.