Is there a way to create a function in vanilla JavaScript that can hide a specific button?
<button class"btn">button 1 </button>
<button class"btn">button 2 </button>
<button class"btn">button 3 </button>
Specifically, I am looking for a solution where clicking on button 2 would result in hiding buttons 1 and 3.