Which method should be used to execute this business requirement?

A developer creates an object where its properties should be immutable and prevent

properties from being added or modified.

Which method should be used to execute this business requirement?
A . Object.const()
B . Object.eval()
C . Object.lock()
D . Object.freeze()

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments