{"id":3541,"date":"2020-06-07T14:03:52","date_gmt":"2020-06-07T11:03:52","guid":{"rendered":"https:\/\/elzero.org\/?p=3541"},"modified":"2022-10-27T18:50:15","modified_gmt":"2022-10-27T15:50:15","slug":"prevent-property-change-in-object-challenge","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/prevent-property-change-in-object-challenge\/","title":{"rendered":"Prevent Object Property Change"},"content":{"rendered":"<h3>\u0645\u0642\u062f\u0645\u0629 \u0639\u0646 \u0627\u0644\u062a\u062d\u062f\u064a<\/h3>\r\n\r\n<div class=\"text\">\r\n\u0642\u0645 \u0628\u0645\u0646\u0639 \u062a\u063a\u064a\u064a\u0631 \u0642\u064a\u0645\u0629 \u0627\u0644 Property \u062f\u0627\u062e\u0644 \u0627\u0644 Object \u062d\u062a\u0649 \u062a\u0638\u0647\u0631 \u0641\u064a \u0627\u0644\u0646\u0647\u0627\u064a\u0629 \u0646\u0641\u0633 \u0627\u0644\u0642\u064a\u0645\u0629 \u0627\u0644\u0645\u0648\u062c\u0648\u062f\u0629 \u062f\u0627\u062e\u0644 \u0627\u0644 Object\r\n<\/div>\r\n\r\n<h3>\u0627\u0644\u0645\u0637\u0644\u0648\u0628<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u064a\u062c\u0628 \u0639\u0645\u0644 \u0627\u0644\u062a\u062d\u062f\u064a \u0628\u0644\u063a\u0629 JavaScript<\/li>\r\n  <li>\u0641\u064a \u0627\u0644\u0633\u0637\u0631 \u0627\u0644\u0645\u0648\u0636\u062d \u0641\u064a \u0627\u0644\u0645\u062b\u0627\u0644 \u0642\u0645 \u0628\u0643\u062a\u0627\u0628\u0629 \u0633\u0637\u0631 Code \u064a\u0645\u0646\u0639 \u062a\u063a\u064a\u064a\u0631 \u0642\u064a\u0645\u0629 \u0627\u0644 Property c<\/li>\r\n  <li>\u0644\u0627 \u062a\u0642\u0645 \u0628\u062a\u0639\u062f\u064a\u0644 \u0623\u064a \u0634\u064a\u0621 \u0641\u064a \u0627\u0644 Code \u0641\u0642\u0637 \u0643\u0644 \u0645\u0627 \u0639\u0644\u064a\u0643 \u0647\u0648 \u0643\u062a\u0627\u0628\u0629 \u0627\u0644\u0633\u0637\u0631 \u0627\u0644\u0630\u064a \u064a\u0642\u0648\u0645 \u0628\u0639\u0645\u0644 \u0627\u0644\u0645\u0647\u0645\u0629<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0627\u0644\u062a\u062d\u062f\u064a\u0627\u062a<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0644\u0627 \u062a\u0633\u062a\u062e\u062f\u0645 <span>Object.freeze<\/span><\/li>\r\n<\/ul>\r\n\r\n<h3>\u0627\u0644\u0646\u062a\u064a\u062c\u0629<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-javascript\">\r\n\/\/ The Main Object\r\nconst myObject = {\r\n  a: 1,\r\n  b: 2,\r\n  c: 3\r\n}\r\n\r\n\/\/ Write Code Here To Prevent Changing Of Property C Value\r\n\r\nmyObject.c = 100;\r\nconsole.log(myObject.c); \/\/ 3\r\n<\/script>\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>Prevent Object Property Change<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[882],"tags":[131,514,860,221,863,864,862,865,861],"class_list":["post-3541","post","type-post","status-publish","format-standard","hentry","category-programming-challenges","tag-change","tag-object","tag-prevent","tag-property","tag-863","tag-864","tag-862","tag-865","tag-861"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/3541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=3541"}],"version-history":[{"count":14,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/3541\/revisions"}],"predecessor-version":[{"id":12446,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/3541\/revisions\/12446"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=3541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=3541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=3541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}