aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/operators
diff options
context:
space:
mode:
author3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com>2022-02-01 19:42:11 +0900
committerGitHub <noreply@github.com>2022-02-01 19:42:11 +0900
commit4289bf1fbb823f410775b4c7d0533b7abd8e5f5f (patch)
tree624a9bf236fff00b97fc8c61a76b672333303427 /files/ko/web/javascript/reference/operators
parent41bbbf1ce8a34763e6ecc099675af29fb5bef62e (diff)
downloadtranslated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.tar.gz
translated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.tar.bz2
translated-content-4289bf1fbb823f410775b4c7d0533b7abd8e5f5f.zip
remove class 1 (#3922)
Diffstat (limited to 'files/ko/web/javascript/reference/operators')
-rw-r--r--files/ko/web/javascript/reference/operators/await/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/files/ko/web/javascript/reference/operators/await/index.html b/files/ko/web/javascript/reference/operators/await/index.html
index 00b5fd3eff..4087edfca7 100644
--- a/files/ko/web/javascript/reference/operators/await/index.html
+++ b/files/ko/web/javascript/reference/operators/await/index.html
@@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Operators/await
<h2 id="구문">구문</h2>
-<pre class="syntaxbox notranslate">[<em>rv</em>] = await <em>expression</em>;</pre>
+<pre class="syntaxbox ">[<em>rv</em>] = await <em>expression</em>;</pre>
<dl>
<dt><code>expression</code></dt>
@@ -34,7 +34,7 @@ translation_of: Web/JavaScript/Reference/Operators/await
<p>만약 <code>Promise</code>가 <code>await</code>에 넘겨지면, <code>await</code>은 <code>Promise</code>가 fulfill되기를 기다렸다가, 해당 값을 리턴합니다.</p>
-<pre class="brush: js notranslate">function resolveAfter2Seconds(x) {
+<pre class="brush: js ">function resolveAfter2Seconds(x) {
return new Promise(resolve =&gt; {
setTimeout(() =&gt; {
resolve(x);
@@ -52,7 +52,7 @@ f1();
<p>{{jsxref("Global_Objects/Promise/then", "Thenable objects")}} will be fulfilled just the same.</p>
-<pre class="notranslate"><code>async function f2() {
+<pre ><code>async function f2() {
const thenable = {
then: function(resolve, _reject) {
resolve('resolved!')
@@ -65,7 +65,7 @@ f2();</code></pre>
<p>만약 값이 <code>Promise</code>가 아니라면, 해당 값은 <code>resolve</code>된 <code>Promise</code>로 변환되며 이를 기다립니다.</p>
-<pre class="brush: js notranslate">async function f2() {
+<pre class="brush: js ">async function f2() {
var y = await 20;
console.log(y); // 20
}
@@ -74,7 +74,7 @@ f2();
<p>만약 <code>Promise</code>가 <code>reject</code>되면, <code>reject</code>된 값이 <code>throw</code>됩니다.</p>
-<pre class="brush: js notranslate">async function f3() {
+<pre class="brush: js ">async function f3() {
try {
var z = await Promise.reject(30);
} catch(e) {
@@ -86,7 +86,7 @@ f3();
<p>try블럭 없이 rejected <code>Promise</code>다루기</p>
-<pre class="notranslate"><code>var response = await promisedFunction().catch((err) =&gt; { console.error(err); });
+<pre ><code>var response = await promisedFunction().catch((err) =&gt; { console.error(err); });
// response will be undefined if the promise is rejected</code></pre>
<h2 id="Specifications">Specifications</h2>