Apty interview question

In Javascript, how would you make a variable read-only and on what occasions?