473,763 Members | 3,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Diagram showing an overview of Javascript type conversion

Hi:

There is an introductory diagram for those confused by
javascript type wrangling (i.e., runtime type conversion
by the javascript interpreter).

http://mollypages.org/misc/jstypes.mp

It's not comprehensive but covers most common scenarios.

Best regards,
--j
Mar 25 '08 #1
2 2312
java schreef:
Hi:

There is an introductory diagram for those confused by
javascript type wrangling (i.e., runtime type conversion
by the javascript interpreter).

http://mollypages.org/misc/jstypes.mp

It's not comprehensive but covers most common scenarios.

Best regards,
--j
type Status report

message /misc/jstypes.mp

description The requested resource (/misc/jstypes.mp) is not available.
Mar 26 '08 #2
java wrote:
There is an introductory diagram for those confused by
javascript type wrangling (i.e., runtime type conversion
by the javascript interpreter).

http://mollypages.org/misc/jstypes.mp

It's not comprehensive but covers most common scenarios.
On that diagram the statement "null and undefined convert to NaN so they
always return false when compared to a different type" is not true. The
algorithms for type-converting comparison do not type-convert null and
undefined values at all, and no type-conversation would result in null
becoming NaN (it become zero if type-converted into numbers (and so
would be equal to zero if type-conversion was part of the comparison
process)).

The "Comparison is intuitive" comment when both sides of comparisons are
the same type does not take account of the fact that - NaN == NaN - is
false (and - NaN != NaN - true).

Richard.
Mar 26 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2415
by: Ara.T.Howard | last post by:
anyone out there know where i might find a python object model diagram? cheers. -a -- =============================================================================== | email :: ara t howard noaa gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death
136
9446
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
1
4235
by: Maria | last post by:
Heya, I am doing some background reading about the database and i am a little bit confused, i would appreciated any help.... Assume been asked to draw the ER diagram for the following statement: "Many players play for a team but a player can play just in one team"
3
1644
by: Lee Crabtree | last post by:
Are there any tools that will take an existing assembly and generate a class hierarchy from it? It seems like the kind of thing that would be possible with reflection, but I don't know enough about that namespace to tackle this. Lee Crabtree
2
1241
by: José Joye | last post by:
Hello I'm currently looking for a diagram that shows the event we can register with asp.net. I'm currently a bit lost with when they are fight and which one are our disposal..... Thanks, José
5
2452
by: Flak | last post by:
Hi, I am a beginning to intermediate PHP programmer. Home schooled. My programmes are starting to get rather big with a couple of thousand lines of code and 10's of different files. I am starting to lose the bigger picture. I want to start using a flow/diagram tool. But I have no idea what program to use. Are there experienced users that can help me with this subject? What to look for in a program and what to not look for.
3
3939
by: Marcus | last post by:
Hy! I use Visio 2002 to draw an ER-Diagram with round about 200 entities and 800 relationships between these entities. Little bit of horror, but I am on my way. My question is, is there a tool that can create an interactive website (with dhtml, ajax or something like that) from such a diagram? I want to click on an entity and then only want to see the relationships for this entity. Nothing else. Is there such a tool or do you know a...
9
1886
by: crater | last post by:
The following function is not updating an image in opera 9.02. upd_on = new Image() upd_on.src = "images/update_button.gif" function enableUpdate() { var update = document.getElementById("cart_Update") update.disabled = "" update.style.cursor = "pointer" update.src = upd_on.src }
1
4687
by: Jennifer Jazz | last post by:
My question is regarding the mapping of Class diagram to the C++ coding. There are 3 realtions in Class diagram 1) Assosication 2) Composition 3) Aggregation (Weak Composition). -----------------------------------------------------
0
9566
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10003
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9943
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9828
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8825
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7370
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5271
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5410
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2797
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.