Write code on multiple lines in the Console

Help us make DevTools Tips better! Fill out this survey to tell us more about your DevTools habits and frustrations.

Categories: Supported by:

Write code on multiple lines in the Console

If you're feeling adventurous and want to write longer pieces of code in the Console to execute more complex things, it can quickly become difficult.

Thankfully, there are a few ways to make your life easier by writing on multiple lines, like you would in a code editor:

See also