Hiding elements not working

Thank you, I changed my code and now it has red lines under .hide and .show. The error says 'Property ‘hide’ does not exists on type ‘any[]’. Do you know what I did wrong?