The differences between Object.freeze() vs Const in JavaScript

ES6 has brought several new features and methods into JavaScript since its release. These features have better improved our workflow and productivity as JavaScript developers. Amongst these new features are Object.freeze() method and const.

It is argued among a few developers especially newbies that these two feature works the same way, but NO they don’t…




Developer Advocate at Commerce Layer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Friday Frontend: Frontend Inspiration Edition

#100DaysOfCode Day 12: React Router

Server cables plugged into a server

Friday Frontend: High as a 4–20 Kite Edition

Moving into the subscription model

Angular 10 Session Cookies and Data Encryption and Decryption Easiest Way

== VS === in JavaScript

How to handle Routing and Navigation in React JS

React logo

Run PostgreSQL with Docker locally and connect to it with Node.js

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bolaji Ayodeji

Bolaji Ayodeji

Developer Advocate at Commerce Layer

More from Medium


Functions & Function Declarations in Javascript

Math Object in Javascript

JavaScript Block Scope V/S Function Scope