From 734812ec69d6d824bbef10028ef57ce9a204accc Mon Sep 17 00:00:00 2001 From: Allo Date: Wed, 15 Nov 2023 21:03:43 +0800 Subject: [PATCH] fix syntax box --- files/zh-tw/web/api/console/assert_static/index.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/files/zh-tw/web/api/console/assert_static/index.md b/files/zh-tw/web/api/console/assert_static/index.md index 1e0a0d800d8b1a..c0d03894bbec7a 100644 --- a/files/zh-tw/web/api/console/assert_static/index.md +++ b/files/zh-tw/web/api/console/assert_static/index.md @@ -1,7 +1,6 @@ --- title: Console.assert() slug: Web/API/console/assert_static -original_slug: Web/API/console/assert --- {{APIRef("Console API")}} @@ -14,9 +13,14 @@ original_slug: Web/API/console/assert ## 語法 -```plain -console.assert(assertion, obj1 [, obj2, ..., objN]); -console.assert(assertion, msg [, subst1, ..., substN]); // c-like message formatting +```js-nolint +assert(assertion, obj1) +assert(assertion, obj1, obj2) +assert(assertion, obj1, obj2, /* …, */ objN) + +assert(assertion, msg) +assert(assertion, msg, subst1) +assert(assertion, msg, subst1, /* …, */ substN) ``` ### 參數