JavaScript & TypeScript Practice Suite
Automation Scripting Editor
Practice writing core JavaScript & TypeScript syntax used by Playwright, Selenium, and Cypress automation frameworks. Select an exercise to load template code, modify it, and run it live!
Select Challenge Track
Active Instructions
Create a loop that dynamically constructs and prints 5 child CSS locators for table rows: `tr:nth-child(1) td.actions` through `tr:nth-child(5) td.actions`.
Tip: Automation scripts are written sequentially. Feel free to add `console.log()` statements to output parameters, locators, or serialized objects.
script-automation.js
Bash Console / Output Log
Environment: Chrome / V8 Engine