Chrome DevTools: Console Panel autocomplete with JavaScript properties
Last updated: 26th July 2020
Autocomplete in the Console Panel not only works with regular dot notation such as:
window.onloa
→window.onload
But also with square bracket notation:
window['onloa
→window['onload']
Even if you have an array, you get autocomplete for the index e.g. arr[0
→ arr[0]
.
Extra
If you want to learn more about tips and tricks in the Console Panel, check out: 5 tricks to use in the Console Panel.