From c0238173f5fb316c8435670eaf137e8cc7babc82 Mon Sep 17 00:00:00 2001 From: circl Date: Sun, 17 Nov 2024 18:55:00 +0100 Subject: [PATCH] Adjust the phrasing of console.clear behavior, correct Node.js behavior (#36828) --- files/en-us/web/api/console/clear_static/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/en-us/web/api/console/clear_static/index.md b/files/en-us/web/api/console/clear_static/index.md index cffc26e596d0d5d..b952b001bb61a47 100644 --- a/files/en-us/web/api/console/clear_static/index.md +++ b/files/en-us/web/api/console/clear_static/index.md @@ -8,7 +8,9 @@ browser-compat: api.console.clear_static {{APIRef("Console API")}} -The **`console.clear()`** static method clears the console if the console allows it. A graphical console, like those running on browsers, will allow it; a console displaying on the terminal, like the one running on Node, will not support it, and will have no effect (and no error). +The **`console.clear()`** static method clears the console if possible. + +A graphical console, like those in web browsers, will remove all previous messages; a console displaying on a terminal, like the one in Node.js, will attempt to clear it using an escape code or system API; otherwise the method will have no effect (and no error). ## Syntax