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);