aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/javascript/reference/operators/class
diff options
context:
space:
mode:
authorAlexey Pyltsyn <lex61rus@gmail.com>2021-10-27 02:31:24 +0300
committerGitHub <noreply@github.com>2021-10-27 02:31:24 +0300
commit980fe00a74a9ad013b945755415ace2e5429c3c2 (patch)
treea1c6bb4b302e69bfa53eab13e44500eba55d1696 /files/ru/web/javascript/reference/operators/class
parent374a039b97a11ee7306539d16aaab27fed66b398 (diff)
downloadtranslated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.tar.gz
translated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.tar.bz2
translated-content-980fe00a74a9ad013b945755415ace2e5429c3c2.zip
[RU] Remove notranslate (#2874)
Diffstat (limited to 'files/ru/web/javascript/reference/operators/class')
-rw-r--r--files/ru/web/javascript/reference/operators/class/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/ru/web/javascript/reference/operators/class/index.html b/files/ru/web/javascript/reference/operators/class/index.html
index c7efce0be6..4fa06e092f 100644
--- a/files/ru/web/javascript/reference/operators/class/index.html
+++ b/files/ru/web/javascript/reference/operators/class/index.html
@@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Operators/class
<h2 id="Синтаксис">Синтаксис</h2>
-<pre class="syntaxbox notranslate">var MyClass = class <em>[className]</em> [extends] {
+<pre class="syntaxbox">var MyClass = class <em>[className]</em> [extends] {
  // тело класса
};</pre>
@@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Operators/class
<p>Так же, как и при использовании class declaration, тело класса у class expression будет исполняться в {{jsxref("Strict_mode", "строгом режиме", "", 1)}}.</p>
-<pre class="brush: js notranslate">'use strict';
+<pre class="brush: js">'use strict';
var Foo = class {}; // свойство конструктора опционально
var Foo = class {}; // повторное объявление разрешено
@@ -39,7 +39,7 @@ class Foo {}; // Throws TypeError, doesn't allow re-declaration
<p>Простой анонимный class expression, на который можно сослаться с помощью переменной "Foo".</p>
-<pre class="brush: js notranslate">var Foo = class {
+<pre class="brush: js">var Foo = class {
constructor() {}
bar() {
return "Hello World!";
@@ -55,7 +55,7 @@ Foo.name; // "Foo"
<p>Если вы хотите сослаться на конкретный класс внутри тела класса, вы можете создать именованный class expression. Это имя будет доступно только внутри области видимости самого class expression.</p>
-<pre class="brush: js notranslate">var Foo = class NamedFoo {
+<pre class="brush: js">var Foo = class NamedFoo {
constructor() {}
whoIsThere() {
return NamedFoo.name;