diff options
Diffstat (limited to 'files/uk/glossary/value/index.html')
-rw-r--r-- | files/uk/glossary/value/index.html | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/files/uk/glossary/value/index.html b/files/uk/glossary/value/index.html deleted file mode 100644 index 36c4f46d87..0000000000 --- a/files/uk/glossary/value/index.html +++ /dev/null @@ -1,36 +0,0 @@ ---- -title: Значення -slug: Glossary/Value -tags: - - Значення - - Посилання - - Проста величина - - Словник -translation_of: Glossary/Value -original_slug: Glossary/Значення ---- -<p><span class="seoSummary">Кажучи про дані або <strong>{{Glossary("Wrapper", "обгортку")}}</strong> для тих даних, <strong>значення</strong> являє собою <strong>{{Glossary("Primitive","просту величину")}}</strong>, яка міститься в об'єкті-обгортці. Натомість, кажучи про <strong>{{Glossary("Variable","змінну")}}</strong> чи <strong>{{Glossary("Property","властивість")}}</strong>, <strong>значенням</strong> можуть називати як просту величину, так і <strong>{{Glossary("Object reference","посилання на об'єкт")}}</strong>.</span></p> - -<h2 id="Приклади">Приклади</h2> - -<pre class="brush: js">// Значенням змінної x є число 5 -var x = 5; - -// Значенням змінної y є рядок (проста величина) 'Затівка' -var y = 'Затівка'; - -// Значенням змінної z є посилання на об'єкт типу String, а значенням того об'єкта є рядок (проста величина) 'Затівка' -var z = new String(y); - -console.log(x.valueOf() === 5); // виводить true -console.log(y.valueOf() === y); // виводить true -console.log(z.valueOf() === z); // виводить false -console.log(z.valueOf() === y); // виводить true</pre> - -<h2 id="Дізнатись_більше">Дізнатись більше</h2> - -<h3 id="Загальні_відомості">Загальні відомості</h3> - -<ul> - <li><a href="https://en.wikipedia.org/wiki/Primitive_wrapper_class">Primitive wrapper class</a> у Вікіпедії</li> -</ul> |