From d256785282d6f2261ad7c20b9e016dee5265b307 Mon Sep 17 00:00:00 2001
From: Richard Gibson 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 MDN.
+ 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 MDN.
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 Firebug console (Firefox).
Anything
A string in JavaScript is an immutable object that contains none, one or many characters. +
A string in JavaScript is an immutable primitive value that contains none, one or many characters.
"I'm a String in JavaScript!"
'So am I!'
@@ -165,7 +165,7 @@ htmlString
$( "hellowaitbye" ).appendTo( "body" );
Numbers in JavaScript are double-precision 64-bit format IEEE 754 values. They are immutable, just as strings. All operators common in c-based languages are available to work with numbers (+, -, *, /, %, =, +=, -=, *=, /=, ++, --). +
Numbers in JavaScript are double-precision 64-bit format IEEE 754 values. They are immutable primitive values, just like strings. All operators common in c-based languages are available to work with numbers (+, -, *, /, %, =, +=, -=, *=, /=, ++, --).
12
3.543