It is possible to make a transform.rotation juste in one angle ?

I want to know if is possible to change a rotation juste in one axis exemple
transform.rotation"y axi" = target.transform.rotation"y axi"
thans and sorry if i made a misstake. I’m french

You should use only one axis by
tranfrom.rotation.x or
transfrom.rotation.y or
transfrom.rotation.z
respectively

yes but it doesn’t work
if i made transform.rotation.y
i’ve got an error because transform.rotation is not a var.