Check out example codes for "how to find the tag of an objecdt in unity". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

string enemyTag = "Enemy";
Enemies = GameObject.FindGameObjectsWithTag(enemyTag);

Code Example 3

gameObject.tag

Learn ReactJs, React Native from akashmittal.com