From 9b907b9ada2a4a97db2ecafb6a0a0094db348bf3 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 11 Nov 2017 05:35:22 +0800 Subject: [PATCH] docs(api): javascript -> JavaScript (#1338) --- docs/api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index a5c4520f..5b67c6a6 100644 --- a/docs/api.md +++ b/docs/api.md @@ -898,7 +898,7 @@ The `format` options are: - `prototypeHandle` <[JSHandle]> A handle to the object prototype. - returns: <[Promise]<[JSHandle]>> Promise which resolves to a handle to an array of objects with this prototype. -The method iterates javascript heap and finds all the objects with the given prototype. +The method iterates JavaScript heap and finds all the objects with the given prototype. ```js // Create a Map object @@ -1666,7 +1666,7 @@ await resultHandle.dispose(); - `prototypeHandle` <[JSHandle]> A handle to the object prototype. - returns: <[JSHandle]> A handle to an array of objects with this prototype -The method iterates javascript heap and finds all the objects with the given prototype. +The method iterates JavaScript heap and finds all the objects with the given prototype. ```js // Create a Map object @@ -1683,7 +1683,7 @@ await mapPrototype.dispose(); ### class: JSHandle -JSHandle represents an in-page javascript object. JSHandles can be created with the [page.evaluateHandle](#pageevaluatehandlepagefunction-args) method. +JSHandle represents an in-page JavaScript object. JSHandles can be created with the [page.evaluateHandle](#pageevaluatehandlepagefunction-args) method. ```js const windowHandle = await page.evaluateHandle(() => window);