```js
console.clear()
const obj = {}
obj.a = 1
console.log(obj)
Object.freeze(obj)
obj.b = 2
console.log(obj)
console.log(Object.isFrozen(obj))
```
codepen
https://codepen.io/frontend-tech/pen/yLPBOpa
MDN
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
#JavaScript #Frontend #shorts
--------------------------------------------------
Please Check my movies!!
▶︎Movie - CSS
writing-mode
/watch/gLszI7Y8X_U8z
text-transform
/watch/4tWnaDD-fmx-n
zoom
/watch/MwmhqcvvSGtvh
▶︎Movie - JavaScript
Array.prototype.concat()
/watch/ggBRSBn2r-C2R
filter(v, i, self) - Duplicate items
/watch/gxfyjt3PXyMPy
▶︎Movie - HTML
input
/watch/Q96MALgOOaEOM
del & ins
/watch/kgZMby7nBT9nM
▶︎Movie - SCSS
min, max
/watch/gRHrwoqW6-zWr
mix
/watch/IDlhVt31khi1h
▶︎Movie - Vue.js
Methods
/watch/UX49Z0fN7QFN9
▶︎Movie - SVG
Introduction
/watch/U7un2HKp8Zcpn
--------------------------------------------------
▶︎Target
For beginners to learn.
For intermediate reviewers.
▶︎Weekly plan - 2021
Mon. JavaScript
Tue. CSS
Wed. Any
Thu. Any
Fri. Any
▶︎Why I post
I'm not good at reading thick books.
When I became an engineer, I was frustrated many times.
The documentation out there is complicated and it has afflicted me.
So I want to explain programming as simply as possible.
Of course, it also serves as my study.
▶︎My future
Recently I'm making a short video. but want to make a long video when I have time.
want to make a site and try to monetize it.
But also want to support the programming challenges of beginners.
Let's all do our best!
And I hope the world goes for the better with programming.
Please subscribe to the channel.
/channel/UCsfRMap5w375cKIVsciR0lQ
Category
Show more
Comments - 7
Related videos for Object.freeze () | JavaScript | Frontend shorts: