Check out example codes for "get objects z rotation in degrees unity". It will help you in understanding the concepts better.

Code Example 1

gameObject.transform.rotation.eulerAngles.z

Learn ReactJs, React Native from akashmittal.com