Code Blocks
Code blocks are a place to write freeform JavaScript in your Protocol Bot scripts and Browser Bot scripts. They aren’t used in Playwright scripts, which are written entirely in JavaScript already.
JavaScript Code Blocks
Code blocks can exist anywhere in your script. In fact, if you wanted to you could make a script that’s just a single code block and just do everything in JavaScript.