Skip to content

JavaScript & TypeScript Interview Questions for Playwright

4 JavaScript & TypeScript questions with answers for playwright roles. Tick what you have solved to track your progress.

Sheet progressStart practicing
03

What happens if you forget an await?

Show answer
The action runs without waiting, so the next step may run first — causing flaky failures or 'Target closed' errors. The @typescript-eslint/no-floating-promises rule catches it.
04

interface vs type in TypeScript?

Show answer
Both describe object shapes. Interfaces can be extended and merged; type aliases can also describe unions and primitives. Use interfaces for page or test-data shapes, types for unions.