DEV Community

Cover image for Chrome 80 brings support for let and class redeclarations in the Console
Vishnu Damwala
Vishnu Damwala

Posted on • Edited on

4 3

Chrome 80 brings support for let and class redeclarations in the Console

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.

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 redeclarations of let and class statements.

Note: Redeclaring 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 redeclaring a local variable with let in the Console

Screenshot for an example of the let redeclaration failing in the Console of Chrome 79

Example of the let redeclaration in the Console of Chrome 80:

Screenshot for an example of allowing the let redeclaration in the Console of Chrome 80

Image Credit:
Google Chrome Updates

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (1)

Collapse
 
devope profile image
Kirill Devope

Interesting. Thanks!

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay