S
S
seosova2017-10-04 21:46:56
JavaScript
seosova, 2017-10-04 21:46:56

How to enable autocompletion in the Google Chrome Dev Tools console for variables declared via let and const?

Good day to all. Suddenly I realized that Google Chrome Dev Tools in the console does not auto-complete variables declared through let and const. Wildly annoying, despite the fact that the same Firefox normally picks them up.
Maybe there is some option in the settings? Maybe someone knows suddenly in future versions there will be no such problem? In general, it’s strange that 2017 is in the yard, ES6 has long been ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rejjer, 2017-10-06
@rejjer

Variables declared with let are not added to the window object, but they are added via var ( tyk ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question