get tag unity

Code Example - get tag unity

                
                        gameObject.tag = "Player";
                    
                
 

how to find the tag of an objecdt in unity

                        
                                if(FindGameObjectsWithTag(Player){
  Debug.Log("FoundPlayer")
  }