Get camera's rotation value

Does anyone know how to get the rotation value of the main camera? It needs to be in Javascript, too.

Camera.main.transform.localEulerAngles

Camera.main.transform.EulerAngles

Camera.main.transform.rotation

Camera.main.transform.localRotation

from what i remember…