Firefox DevTools provide a multiline JavaScript console
Written by Stefan Judis
- Published at
- Updated at
- Reading time
- 1min
This post is part of my Today I learned series in which I share all my web development learnings.
I'm a big fan of prototyping in the JavaScript console and find myself opening the developer tools just for this purpose.
Unfortunately, console prototyping can sometimes be a little cumbersome for extensive snippets because the console isn't built for writing extended snippets spanning multiple lines. You can work around this by pressing Shift + Enter
, but still, it's not great.
Today, I was thrilled to learn that the Firefox developer tools provide a somewhat hidden multi-line console editor to write extended snippets more easily!
This feature is top DX in action! 💯 Thanks Firefox.
If you enjoyed this article...
Join 5.1k readers and learn something new every week with Web Weekly.