https://jsxgraph.org/wiki/index.php?title=Datatypes_and_variables&feed=atom&action=historyDatatypes and variables - Revision history2024-03-29T13:13:58ZRevision history for this page on the wikiMediaWiki 1.40.1https://jsxgraph.org/wiki/index.php?title=Datatypes_and_variables&diff=2571&oldid=prevMichael at 10:13, 16 July 20092009-07-16T10:13:04Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:13, 16 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l5">Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''null''': Null means ''variable has no value at all''. Do not confuse '''null''' with 0 (zero)! 0 is just a number, null means just no value or a empty or non-existent reference.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''null''': Null means ''variable has no value at all''. Do not confuse '''null''' with 0 (zero)! 0 is just a number, null means just no value or a empty or non-existent reference.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* '''undefined''': A value that is undefined is a value held by a variable right after it has been created and before a value has been assigned to it.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* '''undefined''': A value that is undefined is a value held by a variable right after it has been created and before a value has been assigned to it<ins style="font-weight: bold; text-decoration: none;">. The return value of a function which is actually not returning a value, is of type undefined</ins>.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''boolean''': A variable of type boolean may hold the special values ''true'' or ''false''. If a number value is used where a boolean expression is expected, a zero value will be treated like ''false'' and any other value will be treated as ''true''.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''boolean''': A variable of type boolean may hold the special values ''true'' or ''false''. If a number value is used where a boolean expression is expected, a zero value will be treated like ''false'' and any other value will be treated as ''true''.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* '''number''': This type is a set of values representing integer and floating point numbers. In ECMAScript, the set of values represents the double-precision [http://en.wikipedia.org/wiki/IEEE_754 64-bit format IEEE 754] values including the special values ''Not-a-Number'' (NaN), ''positive infinity'' (Infinity), and ''negative infinity'' (-Infinity).</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* '''number''': This type is a set of values representing integer and floating point numbers. In ECMAScript, the set of values represents the double-precision [http://en.wikipedia.org/wiki/IEEE_754 64-bit format IEEE 754] values including the special values ''Not-a-Number'' (NaN), ''positive infinity'' (Infinity), and ''negative infinity'' (-Infinity)<ins style="font-weight: bold; text-decoration: none;">. Calculating with numbers is done like in C(++/#), Java, Python, Pascal, PHP, and similar languages</ins>.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* '''string''': A variable of type string is - formally spoken - a finite ordered sequence of at least zero 16-bit unsigned integer values. Practically it is just a string, like you may know from C++ or Java. In C it's like a character array, but with 16 bit characters instead of 8 bit C-char. Single characters of a string can be accessed just like in any other major C-like programming language using square brackets. The first character has index 0.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* '''string''': A variable of type string is - formally spoken - a finite ordered sequence of at least zero 16-bit unsigned integer values. Practically it is just a string, like you may know from C++ or Java. In C it's like a character array, but with 16 bit characters instead of 8 bit C-char. Single characters of a string can be accessed just like in any other major C-like programming language using square brackets. The first character has index 0. <ins style="font-weight: bold; text-decoration: none;">Concatenating strings is done similar to C++/C#, Java, and Pascal with the '+' operator.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">==Type conversion==</ins></div></td></tr>
</table>Michaelhttps://jsxgraph.org/wiki/index.php?title=Datatypes_and_variables&diff=2570&oldid=prevMichael: typo2009-07-16T05:25:58Z<p>typo</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 05:25, 16 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l8">Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''boolean''': A variable of type boolean may hold the special values ''true'' or ''false''. If a number value is used where a boolean expression is expected, a zero value will be treated like ''false'' and any other value will be treated as ''true''.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''boolean''': A variable of type boolean may hold the special values ''true'' or ''false''. If a number value is used where a boolean expression is expected, a zero value will be treated like ''false'' and any other value will be treated as ''true''.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''number''': This type is a set of values representing integer and floating point numbers. In ECMAScript, the set of values represents the double-precision [http://en.wikipedia.org/wiki/IEEE_754 64-bit format IEEE 754] values including the special values ''Not-a-Number'' (NaN), ''positive infinity'' (Infinity), and ''negative infinity'' (-Infinity).</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''number''': This type is a set of values representing integer and floating point numbers. In ECMAScript, the set of values represents the double-precision [http://en.wikipedia.org/wiki/IEEE_754 64-bit format IEEE 754] values including the special values ''Not-a-Number'' (NaN), ''positive infinity'' (Infinity), and ''negative infinity'' (-Infinity).</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* '''string''': A variable of type string is - formally spoken - a finite ordered sequence of at least zero 16-bit unsigned integer values. Practically it is just a string, like you may know from C++ or Java. In C it's like character array, but with 16 bit characters instead of 8 bit C-char. Single characters of a string can be accessed just like in any other major C-like programming language using square brackets. <del style="font-weight: bold; text-decoration: none;">First </del>character has index 0.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* '''string''': A variable of type string is - formally spoken - a finite ordered sequence of at least zero 16-bit unsigned integer values. Practically it is just a string, like you may know from C++ or Java. In C it's like <ins style="font-weight: bold; text-decoration: none;">a </ins>character array, but with 16 bit characters instead of 8 bit C-char. Single characters of a string can be accessed just like in any other major C-like programming language using square brackets. <ins style="font-weight: bold; text-decoration: none;">The first </ins>character has index 0.</div></td></tr>
</table>Michaelhttps://jsxgraph.org/wiki/index.php?title=Datatypes_and_variables&diff=2568&oldid=prevMichael at 19:30, 15 July 20092009-07-15T19:30:12Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:30, 15 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l2">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Data types=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Data types=</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Though JavaScript is a [http://en.wikipedia.org/wiki/Weak_typing weakly typed] programming language, there are some data types between which JavaScript sometimes variables automatically converts:</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Though JavaScript is a [http://en.wikipedia.org/wiki/Weak_typing weakly typed] programming language, there are some <ins style="font-weight: bold; text-decoration: none;">primitive </ins>data types between which JavaScript sometimes variables automatically converts:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">==</del>null<del style="font-weight: bold; text-decoration: none;">==</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* '''</ins>null<ins style="font-weight: bold; text-decoration: none;">''': </ins>Null means ''variable has no value at all''. Do not confuse '''null''' with 0 (zero)! 0 is just a number, null means just no value or a empty or non-existent reference.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Null means ''variable has no value at all''. Do not confuse '''null''' with 0 (zero)! 0 is just a number, null means just no value or a empty or non-existent reference.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* '''</ins>undefined<ins style="font-weight: bold; text-decoration: none;">''': </ins>A value that is undefined is a value held by a variable right after it has been created and before a value has been assigned to it.</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* '''boolean''': A variable of type boolean may hold the special values ''true'' or ''false''. If a number value is used where a </ins>boolean <ins style="font-weight: bold; text-decoration: none;">expression is expected, a zero value will be treated like ''false'' and any other value will be treated as ''true''.</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">==</del>undefined<del style="font-weight: bold; text-decoration: none;">==</del></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* '''</ins>number<ins style="font-weight: bold; text-decoration: none;">''': This type is a set of values representing integer and floating point numbers. In ECMAScript, the set of values represents the double-precision [http://en.wikipedia.org/wiki/IEEE_754 64-bit format IEEE 754] values including the special values ''Not-a-Number'' (NaN), ''positive infinity'' (Infinity), and ''negative infinity'' (-Infinity).</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>A value that is undefined is a value held by a variable right after it has been created and before a value has been assigned to it.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* '''string''': A variable of type string is - formally spoken - a finite ordered sequence of at least zero 16-bit unsigned integer values. Practically it is just a string, like you may know from C++ or Java. In C it's like character array, but with 16 bit characters instead of 8 bit C-char. Single characters of a </ins>string <ins style="font-weight: bold; text-decoration: none;">can be accessed just like in any other major C-like programming language using square brackets. First character has index 0.</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">==</del>boolean<del style="font-weight: bold; text-decoration: none;">==</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">==</del>number<del style="font-weight: bold; text-decoration: none;">==</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">==</del>string<del style="font-weight: bold; text-decoration: none;">==</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
</table>Michaelhttps://jsxgraph.org/wiki/index.php?title=Datatypes_and_variables&diff=2567&oldid=prevMichael at 19:07, 15 July 20092009-07-15T19:07:27Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:07, 15 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{JSTuTToC}}</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Data types=</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=Data types=</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Though JavaScript is a [http://en.wikipedia.org/wiki/Weak_typing weakly typed] programming language, there are some data types between which JavaScript sometimes variables automatically converts:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Though JavaScript is a [http://en.wikipedia.org/wiki/Weak_typing weakly typed] programming language, there are some data types between which JavaScript sometimes variables automatically converts:</div></td></tr>
<!-- diff cache key wikidb-jsxg_:diff::1.12:old-2566:rev-2567 -->
</table>Michaelhttps://jsxgraph.org/wiki/index.php?title=Datatypes_and_variables&diff=2566&oldid=prevMichael: New page: =Data types= Though JavaScript is a [http://en.wikipedia.org/wiki/Weak_typing weakly typed] programming language, there are some data types between which JavaScript sometimes variables aut...2009-07-14T20:28:06Z<p>New page: =Data types= Though JavaScript is a [http://en.wikipedia.org/wiki/Weak_typing weakly typed] programming language, there are some data types between which JavaScript sometimes variables aut...</p>
<p><b>New page</b></p><div>=Data types=<br />
Though JavaScript is a [http://en.wikipedia.org/wiki/Weak_typing weakly typed] programming language, there are some data types between which JavaScript sometimes variables automatically converts:<br />
<br />
==null==<br />
Null means ''variable has no value at all''. Do not confuse '''null''' with 0 (zero)! 0 is just a number, null means just no value or a empty or non-existent reference.<br />
<br />
==undefined==<br />
A value that is undefined is a value held by a variable right after it has been created and before a value has been assigned to it.<br />
<br />
==boolean==<br />
<br />
<br />
==number==<br />
<br />
<br />
==string==</div>Michael