FrontendDeveloper.in

JavaScript Track Detail

What is the purpose of the freeze method

Below are the main benefits of using freeze method,

  1. It is used for freezing objects and arrays.
  2. It is used to make an object immutable.