playing a audio clip on input js

i have a clip to play when i fire my gun but I do not know the code to make a audio clip play when i click a button any help?

Something like:

function Update(){

   if(Input.GetMouseButtonDown(0)){
   
     audio.PlayOneShot (audioClip);  
       
   }
}