Navigate back to the homepage

Chrome 80 brings support for let and class re-declarations in the Console

Vishnu Damwala
April 3rd, 2020 · 1 min read

Chrome 80 now supports re-declarations of let and class keyword in console which make debugging more developer friendly

Google Chrome browser built upon the open-source Chromium browser project manage and maintained by Google.

With the release of Chrome 80 version, now developers can redeclare with let and class in the console so debugging is now more developer friendly.

The inability to redeclare using let and class was a common annoyance amongst web developers who experiment new JavaScript code in the Console.

The Console now supports re-declarations of let and class statements.

Note: Re-declaring a let or class statement in a script outside of the Console or within a single Console input will still cause a SyntaxError.

The versions prior to Chrome 80, would throw an error when re-declaring a local variable with let in the Console

Screenshot for an example of the let re-declaration failing in the Console of Chrome 79

Example of the let re-declaration in the Console of Chrome 80:

Screenshot for an example of allowing the let re-declaration in the Console of Chrome 80

Image Credit: Google Chrome Updates

Hope you learn something new. If this article was helpful, share it.

Happy coding

More articles from MeshWorld

SQL - CREATE TABLE Statement

A tutorial for creating database table with SQL

April 2nd, 2020 · 1 min read

How to allow remote access to MySQL database server

How to allow remote access to MySQL database server

March 5th, 2020 · 2 min read
© 2017–2020 MeshWorld
Link to $https://twitter.com/meshworldindiaLink to $https://facebook.com/meshworldindiaLink to $https://instagram.com/meshworld.india/