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

Updating to Adobe Creative Cloud 2017 – WATCH THIS FIRST! 💻🤘🏼🏆 With Kevin Anson #VideoBoss

May 5, 2020

May 5, 2020 11


How to solve Morelocale2 Error #75 KikoBlog

February 10, 2020

February 10, 2020 21

How to solve Morelocale2 Error #75 KikoBlog When try change language in more local and you get message advising you...

Access to the path is denied: How to fix it

March 20, 2020

March 20, 2020 40

I get this error whenever I do file IO on my server, and I haven’t given permission to the file...

Rom Yüklemek için Adb Komutu İle Download Moda alma

March 3, 2020

March 3, 2020 5

Güncel Teknoloji Sitesi Rom yüklemek için Download moda girmek gerek, Fiziksel Tuş Sorunu Olanlara komut İle Download Moda Alma...

Das große Adobe Bridge CC Tutorial (Adobe Grundkurs 2017)

May 4, 2020

May 4, 2020

► Jetzt Creative Cloud testen: ► Teil der Adobe Grundkurse 2017: ► Alle Lektionen anschauen: ▼ Mehr Informationen Offizielle Seite...

Install Adb and Fastboot System Wide In 1 Minute [October 2017]

February 6, 2020

February 6, 2020 3

This video will show you how to Install Adb and Fastboot System Wide In 1 Minute. This method will work...

Installing Android/ADB/fastboot Drivers on Windows 8 (Disable Driver Verification)

March 20, 2020

March 20, 2020 45

UPDATE: Universal Android driver installer: If your manufacturer hasn’t released drivers for your Android phone for Windows 8, you can...

[ How to fix ] [ recovery mode ] E:failed to mount /efs (Invalid argument)

February 11, 2020

February 11, 2020 41

[ How to fix ] E:failed to mount /efs (Invalid argument) in recovery mode EFS Download ADB tool & ADB...

Szybka Rozpaka – Crucial MX300 1TB SSD SATA3 | 01.2018 McSzakalTV

March 27, 2020

March 27, 2020

Siema, dzisiaj w Szybkich Rozpakach bierzemy się za odpudełkowanie gratów z grudniowo-styczniowego Marzenia Każdego Gracza Pro i kolejnym komponentem będzie...

Ngọc Rồng Online – Đột Nhập Siêu Phẩm Nick Của Admin

April 9, 2020

April 9, 2020 24

-Shop acc và dịch vụ về game NRO: -web tải bản hack vẫn sẽ hoạt động và update ở đây...

Khôi phục dữ liệu nhờ Minitool Power Data Recovery

February 2, 2021

February 2, 2021

Chắc chắn trong quá trình sử dụng máy tính, sẽ có lúc bạn bị mất những dữ liệu quan trọng...

Simple and Easy | Install ADB Drivers | Windows 10 PC/Laptop | Without Android SDK |

February 12, 2020

February 12, 2020 8

Install ADB for Android on Windows 10 PC/Laptop without Android SDK easiest and simple way… ============================================= ADB installer LINK: =============================================...

Desbloqueio conta Google frp bypass account J7 PRO J7 neo J5 pro ANDROID 7.0 7.1

February 26, 2020

February 26, 2020 26

Desbloqueio conta Google frp bypass Account …j7 pro j7 neo J7 prime j5 pró Android 7.0 – 7.1 atualizado 2018...

Inside ADATA SSD (Opening)

March 16, 2020

March 16, 2020

Whats’ inside the SSD. Check the video. if you open your SSD then Warranty is automatically Void (be careful about...

Quitar Patrón de bloqueo en Android SIN RECOVERY y SIN PERDER DATOS! (Tuto actualizado)

March 5, 2020

March 5, 2020 32

Hola amigo de Gmania! Gracias por checar nuestro contenido, a continuación, te dejamos los links a los cuales se hacen...

Leave a Reply

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