aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/javascript/reference/global_objects/boolean/tosource/index.html
blob: b37e4c226f3e82e344e2fe5b2430c1040e6dd37e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: Boolean.prototype.toSource()
slug: Web/JavaScript/Reference/Global_Objects/Boolean/toSource
tags:
  - Boolean
  - JavaScript
  - Method
  - Non-standard
  - Prototype
translation_of: Web/JavaScript/Reference/Global_Objects/Boolean/toSource
---
<div>{{JSRef}} {{non-standard_header}}</div>

<div>Die <code><strong>toSource()</strong></code> Methode gibt einen String mit dem Quelltext des Objektes zurück.</div>

<div> </div>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox"><var>booleanObj</var>.toSource()
Boolean.toSource()</pre>

<h3 id="Rückgabewert">Rückgabewert</h3>

<p>Eine String-Repräsentation des Quelltextes des Objektes.</p>

<h2 id="Beschreibung">Beschreibung</h2>

<p>Die <code>toSource</code> gibt folgende Werte zurück:</p>

<ul>
 <li>Für das eingebaute {{jsxref("Boolean")}} Objekt gibt die <code>toSource</code> folgenden String zurück, um anzuzeigen, dass der Qeulltext nicht verfügbar ist:

  <pre class="brush: js">function Boolean() {
    [native code]
}
</pre>
 </li>
 <li>Für Instanzen von {{jsxref("Boolean")}} gibt die <code>toSource</code> Methode einen String, der den Quelltext wiederspiegelt, zurück.</li>
</ul>

<p>Die Methode wird intern von JavaScript aufgerufen und wird normalerweise nicht in Applikationen eingesetzt.</p>

<h2 id="Spezifikationen">Spezifikationen</h2>

<p>In keinem Standard enthalten. Implementiert in JavaScript 1.3.</p>

<h2 id="Browserkompatibilität">Browserkompatibilität</h2>

<div>


<p>{{Compat("javascript.builtins.Boolean.toSource")}}</p>
</div>

<h2 id="Siehe_auch">Siehe auch</h2>

<ul>
 <li>{{jsxref("Object.prototype.toSource()")}} {{non-standard_inline}}</li>
</ul>