«   Previous tip Next tip   »

Chrome DevTools: Instant results for your JavaScript expressions

Last updated: 20th July 2020
Instant results for your JavaScript expressions

This feature gives you instant results for many side effect free JavaScript expressions. For example, you can type the following in the Console Panel:

`2 + 2 = ${2 + 2}`

And observe the result is:

"2 + 2 = 4"

Without having to hit enter.

Results are displayed as you type which makes this a powerful debugging tool.

This is a hidden experimental feature named Console below-prompt UI.

«   Previous tip Next tip   »

Sign up to receive a developer tip, in the form of a gif, in your inbox each week