All three boxes are set to the same rotation using quaternions.
The top two are given further random rotations. Click on either of the top two followed by the update button and they are reset to their original rotation matching the lowest box.
rotationQuaternion is a JavaScript object. There are no value type structures in JavaScript and thus they don’t copy by value. I’m not exactly sure why you end up with all zeros (send a PG if you really want to find out), but you probably should create a new Quaternion for your “stored” backup value:
var objRot = new Quaternion();
objRot.copyFrom(mesh.rotationQuaternion);