docs: Example documentation for js arg usage now uses args. (#12538)

This commit is contained in:
Nicholas W. Heyer 2024-06-05 12:12:06 -07:00 committed by GitHub
parent 7d0423b12c
commit 61fc10adfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,7 @@ You can provide arguments to your function:
```ts ```ts
const three = await page.evaluate( const three = await page.evaluate(
(a, b) => { (a, b) => {
return 1 + 2; return a + b; // 1 + 2
}, },
1, 1,
2 2