For that simple geometry it actually doesn’t matter.
If you would like to be forward compatible use GL_TIRANGLE_STRIP instead as it is the best supported way beside normal triangle soups.
As randall mentioned, GL_QUADS were removed, personally I expect the same regarding the GL_TRIANGLE_FAN as its usage is quite limited and sometimes not directly supported by the hardware.