From 61fc10adfabf5f646f62423ca1bbf8bd73c436df Mon Sep 17 00:00:00 2001 From: "Nicholas W. Heyer" Date: Wed, 5 Jun 2024 12:12:06 -0700 Subject: [PATCH] docs: Example documentation for js arg usage now uses args. (#12538) --- docs/guides/javascript-execution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/javascript-execution.md b/docs/guides/javascript-execution.md index a32a63055a2..9daaee222b8 100644 --- a/docs/guides/javascript-execution.md +++ b/docs/guides/javascript-execution.md @@ -91,7 +91,7 @@ You can provide arguments to your function: ```ts const three = await page.evaluate( (a, b) => { - return 1 + 2; + return a + b; // 1 + 2 }, 1, 2