When typing expressions in the Console they are not evaluated live. this is a feature already available in chrome Dev tools, which is very useful…
if for example i type in the following expression
document.querySelector(".container-element");
in chrome it will show the result of the evaluation (the first element with in this class) before pressing Enter, this has two benefits.
- if you are typing long chained expressions, you can keep track of the result of each method call and property read.
- if the expression is evaluated live then the return type will be known, this (if I’m not wrong) will enable Autocomplete when accessing Object returned by a function call directly on the function call.