Add read-only (immutable) property to a JavaScript Object

Browser JavaScript and Event Loop Course is available at

Objects are fundamental to JavaScript. Working with objects is easy as the syntax is intuitive.
However, they do not serve all the use cases with Literal Syntax. For example, when you want to create
read-only aka immutable properties, using the square-bracket syntax is not what you want.

In this video, you will learn about Object.defineProperty to add read-only properties to an object

Get the code samples at

**********Watch all JavaScript Tutorials**********


Harit on Twitter:

Subscribe for more videos on JavaScript with Visualization:
Follow bonsaiilabs on Twitter:
Follow bonsaiilabs on Facebook:
Visit bonsaiilabs at


Xem thêm bài viết khác:

Related Posts

Opening Ports on your Router – League of Legends Player Support

March 3, 2020

March 3, 2020 39

Did you know your router has software ports inside of it? While those ports are meant to protect you while...

How to fix Samsung E failed to mount /efs Invalid argument

April 22, 2020

April 22, 2020 47

For More Updates Join Our New Channel E:failed to mount /efs (Invalid argument) After flashing the stock ROM, rebooted the...

Windows 7: reset tcp/ip and winsock

March 2, 2020

March 2, 2020 44

TCP/IP is a set of protocols used to access the Internet and other networks. It is possible for the Windows...

Adobe acrobat DC 19 Full Version updated

March 8, 2020

March 8, 2020 20

Download link – extra link only for keyzen – Nguồn:

Обзор SSD GoodRam CX400 256Gb из Rozetka (Тест скорости)

March 5, 2020

March 5, 2020 11

Покупал тут: (Ссылка не всегда открывается в браузерах смартфонов, в таком случае откройте ее на компьютере). =========================== Music: WeRtOG Prod....

Cách Lấy Mã Giảm Giá Lazada

March 15, 2020

March 15, 2020 6

Cách lấy mã giảm giá lazada ► Xem mã giảm lazada giá tại: ============ ► Theo dõi kênh youtobe HaKhuMa...

Tổng hợp khuyến mãi trên shopee |Săn hàng 0 Đồng Miễn phí

March 16, 2020

March 16, 2020 1

Chào các bạn trong bài viết này mình xin gởi đến các bạn về tổng hợp khuyến mãi trên shopee...


March 4, 2020

March 4, 2020 25

Cara cek status xiaomi sudah ubl apa belum ini bisa di lakukan tanpa pc dan lewat pc buat kamu yg...

Cómo INSTALAR la GCam SIN ROOT en el Xiaomi Mi A2 | Android Pie y Android 10

March 4, 2020

March 4, 2020 21

¡Bienvenidos a Techdroy! Seguramente quieras instalar la GCam en tu Mi A2 sin necesidad de root, puedes visitar este artículo...

How to Create a Set of Flat Animal Vector Icons in Adobe Illustrator

April 16, 2020

April 16, 2020 3

Step by step make an Animal Icons Set Vector in Adobe Illustrator —- ►Subscribe Channel:​ In this tutorial we’ll create...

Tạo giấy mời hàng loạt cho nhiều khách trong Excel, Word 2010

April 30, 2020

April 30, 2020 38

Hướng dẫn cách tạo giấy mời hàng loạt cho nhiều khách trong Excel, Word 2010 sử dụng trộn thư nâng...

Hướng dẫn cài đặt máy in Canon 2900 trên Windows 10 64bits

March 7, 2020

March 7, 2020 26

Hướng dẫn cài đặt máy in Canon 2900 trên Windows 10 64bits Link tải driver canon 2900 cho window 64...

Illustrator CC 2019 – Full Tutorial for Beginners [+General Overview]

March 25, 2020

March 25, 2020 9

Get into a new Way of Learning Adobe Illustrator CC Release 2019. Getting started, basics. 🔥MORE at Full Guide here:...

hướng dẫn làm sub và add sub vào video- aegisub

March 7, 2020

March 7, 2020 33

Đăng ký học online tại đây: hướng dẫn làm sub – aegisub aegisub là phần mềm làm sub phổ biến...

Mi Account Lock Remove / EDL MODE Without Tool Box 100% Free Solution

March 4, 2020

March 4, 2020 37

HI Friends Today I Want To Show How To Xiaomi Redmi MI ACCOUNT LOCK Remove COMPLETE GUID .So Watch &...

Leave a Reply

Your email address will not be published. Required fields are marked *