Pergunta de entrevista da empresa MarketShare

How to do you define variable which doesn't change its value? How is MongoDB unique identifier being generated?Explain precisely