5g vs 4g, GSM vs CDMA, What's the difference?

What does the “g” mean?