Watch JavaScript values in real time with Live Expressions
Stay organized with collections
Save and categorize content based on your preferences.
If you find yourself typing the same JavaScript expression in the Console repeatedly, you might find
it easier to create aLive Expression .WithLive Expressions ,you type an expression once and
then pin it to the top of your Console. The value of the expression updates in near real time.
Create a live expression
To pin an expression to the top of theConsole :
Open the Console .
ClickCreate Live Expression .TheLive Expression text box appears.
Type your expression in the text box. For example, you can use a live expression totrack element focus .
Key point: To type a multi-line expression, start the new line by pressing <kbd>Shift</kbd>+<kbd>Enter</kbd>.
PressEnter to save the expression, or click outside of theLive Expression text box.
The value below the pinned expression is its result. The result updates every 250 milliseconds.
Add multiple expressions
To pin multiple expressions in parallel, click theCreate Live Expression button as many times as you need.
You can only see several pinned expressions at a time but you can scroll the expressions list to view all of them.
Remove expressions
To remove an expression, click theClose button next to it.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License ,and code samples are licensed under theApache 2.0 License .For details, see theGoogle Developers Site Policies .Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-04-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label": "Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label": "Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label": "Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label": "Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label": "Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label": "Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label": "Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label": "Other"
}]
{ "lastModified": "Last updated 2019-04-18 UTC." }
[[[ "Easy to understand", "easyToUnderstand", "thumb-up" ],[ "Solved my problem", "solvedMyProblem", "thumb-up" ],[ "Other", "otherUp", "thumb-up" ]],[[ "Missing the information I need", "missingTheInformationINeed", "thumb-down" ],[ "Too complicated / too many steps", "tooComplicatedTooManySteps", "thumb-down" ],[ "Out of date", "outOfDate", "thumb-down" ],[ "Samples / code issue", "samplesCodeIssue", "thumb-down" ],[ "Other", "otherDown", "thumb-down" ]],[ "Last updated 2019-04-18 UTC." ]]