nameToggle.js
// called when the user clicks the buttons.
called when the user clicks the buttons.
called when the user clicks the buttons .
function buttonClickHandler(){
            if(heading.textContent.trim() === 'Nikhil'){
                setHeading("Saikrishna")
                setSelectValue();
            }else{
                setHeading("Nikhil")
                setSelectValue()
            }
        }
function buttonClickHandler ( ) { if ( heading . textContent . trim ( ) === 'Nikhil' ) { setHeading ( "Saikrishna" ) setSelectValue ( ) ; } else { setHeading ( "Nikhil" ) setSelectValue ( ) } }
called when the user clicks the buttons.
called when the user clicks the buttons .