From 86aba12ebfdca9fb1de77afb08cc78a0c9e44d45 Mon Sep 17 00:00:00 2001 From: 720 <71604450+T34-active@users.noreply.github.com> Date: Tue, 24 Dec 2024 20:53:48 +0800 Subject: [PATCH] Fix Boolean.prototype.valueOf() no variable (#37357) --- .../reference/global_objects/boolean/valueof/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/javascript/reference/global_objects/boolean/valueof/index.md b/files/en-us/web/javascript/reference/global_objects/boolean/valueof/index.md index 049481d73ae18c9..9dfa222f692a6e7 100644 --- a/files/en-us/web/javascript/reference/global_objects/boolean/valueof/index.md +++ b/files/en-us/web/javascript/reference/global_objects/boolean/valueof/index.md @@ -38,8 +38,8 @@ This method is usually called internally by JavaScript and not explicitly in cod ### Using `valueOf()` ```js -x = new Boolean(); -myVar = x.valueOf(); // assigns false to myVar +const x = new Boolean(); +const myVar = x.valueOf(); // assigns false to myVar ``` ## Specifications