From 45dd46e6b17e45bcb3655c53eb921119359336f7 Mon Sep 17 00:00:00 2001 From: 3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com> Date: Sat, 12 Feb 2022 20:27:08 +0900 Subject: remove all span tags 2 (#3921) --- .../web/javascript/reference/statements/export/index.html | 14 +++++++------- .../web/javascript/reference/statements/switch/index.html | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'files/ko/web/javascript/reference/statements') diff --git a/files/ko/web/javascript/reference/statements/export/index.html b/files/ko/web/javascript/reference/statements/export/index.html index 98cb2ee55a..6a5057591c 100644 --- a/files/ko/web/javascript/reference/statements/export/index.html +++ b/files/ko/web/javascript/reference/statements/export/index.html @@ -80,17 +80,17 @@ export default class { ... }

반면 기본 내보내기는 어떤 이름으로도 가져올 수 있습니다.

-
// test.js
-let k; export default k = 12;
+
// test.js
+let k; export default k = 12;
-
// 임의의 다른 파일
-import m from './test'; // k가 기본 내보내기이므로, 가져오는 이름으로 k 대신 m을 사용해도 문제 없음
-console.log(m);         // 12 기록
+
// 임의의 다른 파일
+import m from './test'; // k가 기본 내보내기이므로, 가져오는 이름으로 k 대신 m을 사용해도 문제 없음
+console.log(m);         // 12 기록

식별자 충돌을 피하기 위해 유명 내보내기 중 이름을 바꿔줄 수도 있습니다.

-
export { myFunction as function1,
-         myVariable as variable };
+
export { myFunction as function1,
+         myVariable as variable };

다시 내보내기 / 조합

diff --git a/files/ko/web/javascript/reference/statements/switch/index.html b/files/ko/web/javascript/reference/statements/switch/index.html index 6d8bc20245..271878e74e 100644 --- a/files/ko/web/javascript/reference/statements/switch/index.html +++ b/files/ko/web/javascript/reference/statements/switch/index.html @@ -5,7 +5,8 @@ translation_of: Web/JavaScript/Reference/Statements/switch ---
{{jsSidebar("Statements")}}
-

The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case, as well as statements in cases that follow the matching case.

+

The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case, as well as statements in cases that follow the matching case.

+
{{EmbedInteractiveExample("pages/js/statement-switch.html")}}
-- cgit v1.2.3-54-g00ecf