From 2aa763f8fae4fc46bbbfd5b012f865afa69c068b Mon Sep 17 00:00:00 2001 From: iamgamja Date: Wed, 9 Feb 2022 16:01:55 +0900 Subject: edit files --- files/ko/web/api/console/error/index.md | 87 ++++++++++----------------------- 1 file changed, 27 insertions(+), 60 deletions(-) (limited to 'files/ko/web/api/console/error') diff --git a/files/ko/web/api/console/error/index.md b/files/ko/web/api/console/error/index.md index 529632b39e..7b4995a6d8 100644 --- a/files/ko/web/api/console/error/index.md +++ b/files/ko/web/api/console/error/index.md @@ -1,77 +1,44 @@ --- -title: Console.error() -slug: Web/API/Console/error +title: console.error() +slug: Web/API/console/error tags: - API - DOM - - 디버깅 - - 메소드 - - 웹 개발 - - 웹 콘솔 + - Debugging + - Method + - Web Development + - web console +browser-compat: api.console.error translation_of: Web/API/Console/error --- -
{{APIRef("Console API")}}
+{{APIRef("Console API")}} -

웹 콘솔에 에러 메시지를 출력합니다.

+**`console.error()`** 메서드는 웹 콘솔에 에러 메시지를 출력합니다. -

{{AvailableInWorkers}}

+{{AvailableInWorkers}} -

문법

+## 구문 -
console.error(obj1 [, obj2, ..., objN]);
-console.error(msg [, subst1, ..., substN]);
-console.exception(obj1 [, obj2, ..., objN]);
-console.exception(msg [, subst1, ..., substN]);
-
+```js +console.error(obj1 [, obj2, ..., objN]); +console.error(msg [, subst1, ..., substN]); +``` -
-

노트: console.exception()console.error()의 별칭입니다. 둘은 기능적으로 동일합니다.

-
+### 매개변수 -

파라미터

+- `obj1` ... `objN` + - : 출력할 JavaScript 객체의 리스트. 각 객체의 문자열 표현은 나열된 순서로 함께 출력됩니다. +- `msg` + - : 0개 이상의 하위 문자열을 포함하는 JavaScript 문자열. +- `subst1` ... `substN` + - : `msg` 안의 대체할 하위 문자열을 포함하는 JavaScript 객체. 출력 형식에 추가 제어를 할 수 있게 해줍니다. -
-
obj1 ... objN
-
출력할 JavaScript 객체의 리스트. 각 객체의 문자열 표현은 나열된 순서로 함께 출력됩니다.
-
msg
-
0개 이상의 하위 문자열을 포함하는 JavaScript 문자열.
-
subst1 ... substN
-
msg 안의 대체할 하위 문자열을 포함하는 JavaScript 객체. 출력 형식에 추가 제어를 할 수 있게 해줍니다.
-
+자세한 내용은 [콘솔에 텍스트 출력하기](/ko/docs/Web/API/Console#콘솔에_텍스트_출력하기)를 확인하세요. -

자세한 내용은 {{domxref("console")}} 문서의 콘솔에 텍스트를 출력하기를 확인하세요.

+## 명세 -

명세

+{{Specifications}} - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName("Console API", "#error", "console.error()")}}{{Spec2("Console API")}}초기 정의
+## 브라우저 호환성 -

브라우저 호환성

- -
- - -

{{Compat("api.Console.error")}}

-
- -

함께 보기

- - +{{Compat}} -- cgit v1.2.3-54-g00ecf