Skip to content

Types: Document lack of support for wrapped primitives #986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pages/Types.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
ol ul li { font-size: 1em !important; }
ol ul { margin-left: 1.5em !important; }
</style>
<p>JavaScript provides several built-in datatypes. In addition to those, this page documents virtual types like Selectors, enhanced pseudo-types like Events and some concepts you need to know about Functions. If you want to study these concepts in depth, take a look at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">MDN</a>.
<p>This page documents data types appearing in jQuery function signatures, whether defined by JavaScript itself or further restricted by jQuery. Unless explicitly stated otherwise, jQuery functions require primitive values where applicable, and do not accept their Object-wrapped forms. If you want to study these concepts in depth, take a look at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">MDN</a>.
</p>
<p>You should be able to try out most of the examples below by just copying them to your browser's JavaScript Console (Chrome, Safari with Develop menu activated, IE 8+) or <a href="http://www.getfirebug.com/">Firebug</a> console (<a href="https://www.mozilla.org/en-US/firefox/new/">Firefox</a>).
</p>
Expand Down Expand Up @@ -104,7 +104,7 @@ <h2 id="Anything"> Anything </h2>
</p>

<h2 id="String"> String </h2>
<p>A string in JavaScript is an immutable object that contains none, one or many characters.
<p>A string in JavaScript is an immutable primitive value that contains none, one or many characters.
</p>
<pre><code data-lang="javascript">"I'm a String in JavaScript!"
'So am I!'
Expand Down Expand Up @@ -165,7 +165,7 @@ <h2 id="htmlString"> htmlString </h2>
$( "<b>hello</b>wait<b>bye</b>" ).appendTo( "body" );
</code></pre>
<h2 id="Number"> Number </h2>
<p>Numbers in JavaScript are double-precision 64-bit format IEEE 754 values. They are immutable, just as <a href="#String" title="">strings</a>. All operators common in c-based languages are available to work with numbers (+, -, *, /, %, =, +=, -=, *=, /=, ++, --).
<p>Numbers in JavaScript are double-precision 64-bit format IEEE 754 values. They are immutable primitive values, just like <a href="#String" title="">strings</a>. All operators common in c-based languages are available to work with numbers (+, -, *, /, %, =, +=, -=, *=, /=, ++, --).
</p>
<pre><code data-lang="javascript">12
3.543
Expand Down