1let btnName = document.getElementById('btnId');
2btnName.addEventListener('click', ()=>{
3 let element = document.getElementById('elementId');
4 if (element.style.display != 'inline'){
5 element.style.display = 'inline';
6 }
7 else{
8 element.style.display = 'none'
9 }
10})