aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/statements
diff options
context:
space:
mode:
author3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com>2022-02-02 00:37:06 +0900
committerGitHub <noreply@github.com>2022-02-02 00:37:06 +0900
commitcc28b31f501b06acb38aedcd4e3f5029ec838699 (patch)
tree4410c7b0233b89526f4011754bc3363303b07e74 /files/ko/web/javascript/reference/statements
parent568ac50597a603f2a7af40c87edbe064b3b14564 (diff)
downloadtranslated-content-cc28b31f501b06acb38aedcd4e3f5029ec838699.tar.gz
translated-content-cc28b31f501b06acb38aedcd4e3f5029ec838699.tar.bz2
translated-content-cc28b31f501b06acb38aedcd4e3f5029ec838699.zip
remove class 2 (#3923)
Diffstat (limited to 'files/ko/web/javascript/reference/statements')
-rw-r--r--files/ko/web/javascript/reference/statements/async_function/index.html16
-rw-r--r--files/ko/web/javascript/reference/statements/do...while/index.html4
-rw-r--r--files/ko/web/javascript/reference/statements/for...in/index.html8
-rw-r--r--files/ko/web/javascript/reference/statements/try...catch/index.html20
4 files changed, 24 insertions, 24 deletions
diff --git a/files/ko/web/javascript/reference/statements/async_function/index.html b/files/ko/web/javascript/reference/statements/async_function/index.html
index c1827af8e2..a2dd584d1f 100644
--- a/files/ko/web/javascript/reference/statements/async_function/index.html
+++ b/files/ko/web/javascript/reference/statements/async_function/index.html
@@ -19,7 +19,7 @@ translation_of: Web/JavaScript/Reference/Statements/async_function
<h2 id="Syntax">Syntax</h2>
-<pre class="syntaxbox notranslate">async function <em>name</em>([<em>param</em>[, <em>param</em>[, ... <em>param</em>]]]) {
+<pre class="syntaxbox">async function <em>name</em>([<em>param</em>[, <em>param</em>[, ... <em>param</em>]]]) {
<em>statements</em>
}
</pre>
@@ -63,13 +63,13 @@ translation_of: Web/JavaScript/Reference/Statements/async_function
<p>예를 들어</p>
-<pre class="notranslate">async function foo() {
+<pre >async function foo() {
return 1
}</pre>
<p>위 코드는 아래와 같습니다.</p>
-<pre class="notranslate">function foo() {
+<pre >function foo() {
return Promise.resolve(1)
}</pre>
@@ -77,13 +77,13 @@ translation_of: Web/JavaScript/Reference/Statements/async_function
<p>예를 들어</p>
-<pre class="notranslate">async function foo() {
+<pre >async function foo() {
await 1
}</pre>
<p>위 코드는 아래와 같습니다.</p>
-<pre class="notranslate">function foo() {
+<pre >function foo() {
return Promise.resolve(1).then(() =&gt; undefined)
}
</pre>
@@ -92,7 +92,7 @@ translation_of: Web/JavaScript/Reference/Statements/async_function
<h3 id="Simple_example">Simple example</h3>
-<pre class="notranslate"><code>var resolveAfter2Seconds = function() {
+<pre ><code>var resolveAfter2Seconds = function() {
console.log("starting slow promise");
return new Promise(resolve =&gt; {
setTimeout(function() {
@@ -169,7 +169,7 @@ setTimeout(parallel, 10000); // trully parallel: after 1 second, logs "fast", th
<p>{{jsxref("Promise")}} 를 반환하는 API는 promise chain을 만들며 여러 파트의 함수로 나뉜다.<br>
아래 코드를 보자.</p>
-<pre class="brush: js notranslate">function getProcessedData(url) {
+<pre class="brush: js ">function getProcessedData(url) {
return downloadData(url) // returns a promise
.catch(e =&gt; {
return downloadFallbackData(url) // returns a promise
@@ -182,7 +182,7 @@ setTimeout(parallel, 10000); // trully parallel: after 1 second, logs "fast", th
<p>위의 코드는 하나의 async함수로 아래와 같이 쓰여질 수도 있다.</p>
-<pre class="brush: js notranslate">async function getProcessedData(url) {
+<pre class="brush: js ">async function getProcessedData(url) {
let v;
try {
v = await downloadData(url);
diff --git a/files/ko/web/javascript/reference/statements/do...while/index.html b/files/ko/web/javascript/reference/statements/do...while/index.html
index 9cd6ed0e5c..5b869ddb82 100644
--- a/files/ko/web/javascript/reference/statements/do...while/index.html
+++ b/files/ko/web/javascript/reference/statements/do...while/index.html
@@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Statements/do...while
<h2 id="문법">문법</h2>
-<pre class="syntaxbox notranslate">do<em>구문</em>
+<pre class="syntaxbox ">do<em>구문</em>
while (<em>조건식</em>);
</pre>
@@ -36,7 +36,7 @@ while (<em>조건식</em>);
<p>예제에서 <code>do...while</code> 문은 적어도 한번 반복되고 i 변수가 5 보다 작을 때까지 실행됩니다.</p>
-<pre class="brush: js notranslate">var result = '';
+<pre class="brush: js ">var result = '';
var i = 0;
do {
   i += 1;
diff --git a/files/ko/web/javascript/reference/statements/for...in/index.html b/files/ko/web/javascript/reference/statements/for...in/index.html
index f5e54dcac2..5748e2f097 100644
--- a/files/ko/web/javascript/reference/statements/for...in/index.html
+++ b/files/ko/web/javascript/reference/statements/for...in/index.html
@@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Statements/for...in
<h2 id="Syntax">문법</h2>
-<pre class="syntaxbox notranslate">for (<var>variable</var> in <var>object</var>) {<em> ... </em>}</pre>
+<pre class="syntaxbox ">for (<var>variable</var> in <var>object</var>) {<em> ... </em>}</pre>
<h3 id="Parameters">파라미터</h3>
@@ -64,7 +64,7 @@ translation_of: Web/JavaScript/Reference/Statements/for...in
<p>아래의 예는 열거 가능한 non-Symbol속성들을 반복해서 속성의 이름과 그 값을 기록합니다.</p>
-<pre class="notranslate"><code>var obj = {a: 1, b: 2, c: 3};
+<pre ><code>var obj = {a: 1, b: 2, c: 3};
for (const prop in obj) {
console.log(`obj.${prop} = ${obj[prop]}`);
@@ -79,7 +79,7 @@ for (const prop in obj) {
<p>아래는 {{jsxref("Object.prototype.hasOwnProperty", "hasOwnProperty()")}} 를 사용하는 예를 보여주고 있습니다. 상속된 속성은 표시되지 않습니다.</p>
-<pre class="brush: js notranslate">var triangle = {a:1, b:2, c:3};
+<pre class="brush: js ">var triangle = {a:1, b:2, c:3};
function ColoredTriangle() {
this.color = "red";
@@ -148,7 +148,7 @@ alert(show_own_props(o, "o")); /* alerts: o.color = red */
<p>Prior to SpiderMonkey 40 {{geckoRelease(40)}}, it was possible to use an initializer expression (<code>i=0</code>) in a <code>for...in</code> loop:</p>
-<pre class="notranslate"><code>var obj = {a: 1, b: 2, c: 3};
+<pre ><code>var obj = {a: 1, b: 2, c: 3};
for (var i = 0 in obj) {
console.log(obj[i]);
}
diff --git a/files/ko/web/javascript/reference/statements/try...catch/index.html b/files/ko/web/javascript/reference/statements/try...catch/index.html
index a96c81e1a5..889fa2e7bb 100644
--- a/files/ko/web/javascript/reference/statements/try...catch/index.html
+++ b/files/ko/web/javascript/reference/statements/try...catch/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Statements/try...catch
<h2 id="문법">문법</h2>
-<pre class="notranslate">try {
+<pre >try {
<em>try_statements</em>
}
[catch (<em>exception_var</em>) {
@@ -67,7 +67,7 @@ translation_of: Web/JavaScript/Reference/Statements/try...catch
-<pre class="brush: js notranslate">try {
+<pre class="brush: js ">try {
throw "myException"; // generates an exception
}
catch (e) {
@@ -82,7 +82,7 @@ catch (e) {
-<pre class="notranslate">try {
+<pre >try {
myroutine(); // may throw three types of exceptions
} catch (e) {
if (e instanceof TypeError) {
@@ -102,7 +102,7 @@ catch (e) {
<p>이에 대한 일반적인 사용 사례는 예상 오류의 작은 하위 집합 만 포착 (및 침묵) 한 다음 다른 경우에 오류를 다시 발생시키는 것입니다.</p>
-<pre class="notranslate">try {
+<pre >try {
myRoutine();
} catch (e) {
if (e instanceof RangeError) {
@@ -118,7 +118,7 @@ catch (e) {
-<pre class="notranslate">function isValidJSON(text) {
+<pre >function isValidJSON(text) {
try {
JSON.parse(text);
return true;
@@ -135,7 +135,7 @@ catch (e) {
<p>The following example shows one use case for the <code>finally</code>-block. The code opens a file and then executes statements that use the file; the <code>finally</code>-block makes sure the file always closes after it is used even if an exception was thrown.</p>
-<pre class="notranslate">openMyFile();
+<pre >openMyFile();
try {
// tie up a resource
writeMyFile(theData);
@@ -150,7 +150,7 @@ finally {
<p>First, let's see what happens with this:</p>
-<pre class="notranslate">try {
+<pre >try {
try {
throw new Error('oops');
}
@@ -169,7 +169,7 @@ catch (ex) {
<p>Now, if we already caught the exception in the inner <code>try</code>-block by adding a <code>catch</code>-block</p>
-<pre class="notranslate">try {
+<pre >try {
try {
throw new Error('oops');
}
@@ -191,7 +191,7 @@ catch (ex) {
<p>And now, let's rethrow the error.</p>
-<pre class="notranslate">try {
+<pre >try {
try {
throw new Error('oops');
}
@@ -219,7 +219,7 @@ catch (ex) {
<p>If the <code>finally</code>-block returns a value, this value becomes the return value of the entire <code>try-catch-finally</code> statement, regardless of any <code>return</code> statements in the <code>try</code> and <code>catch</code>-blocks. This includes exceptions thrown inside of the <code>catch</code>-block:</p>
-<pre class="notranslate">(function() {
+<pre >(function() {
try {
try {
throw new Error('oops');