What is object freeze?



What is object freeze?..

Answer / Shiv Kumar Prasad

Object.freeze() is a method in JavaScript that prevents modifications to an object, making it immutable (neither its properties nor methods can be added, removed or changed).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

why we calld java object orinted programming language??

1 Answers   TCS,


What are events in javascript?

1 Answers  


What is the Infinity property used for in Javascript?

1 Answers  


How do I enable javascript on google?

1 Answers  


Explain “use strict” ?

1 Answers  


What are a fixed-width table and its advantages in javascript?

1 Answers  


How to have an element invoke a javascript on selection, instead of going to a new url?

1 Answers  


Difference between window, document, and screen in Javascript?

1 Answers  


What is object cloning

4 Answers  


What are the security related issues in JavaScript scripts?

3 Answers   Four soft,


How to get value of an element by class in javascript ?

1 Answers  


What is a named function in JavaScript? How to define a named function?

1 Answers  


Categories