Saturday, 1 September 2007

Triple equals in JavaScript

I think I'm a pretty decent javascript programmer, so it's always refreshing to learn something new in a language I'm so familiar with! I recently had some time to watch those great lectures from Doug Crockford at YUI Theatre, and noticed lots of === in the code.

That's right, it's not a typo, but 3 equal signs, and it means equality without type coersion. In other words, if using the triple equals, the values must be equal in type as well.

e.g.

0==false // true
0===false // false, because they are of a different type
1=="1" // true, auto type coersion
1==="1" // false, because they are of a different type

Another handy tool in my javascript bag of tricks, as recommended by Mr father of javascript himself!

Yeah - I agree, I had never seen the triple '=' until I tried JSLint... and then for some time I couldn't find out what it did, kept googling "===" instead of "triple equals +javascript" which brought me here :)

"Yeah - I agree, I had never seen the triple '=' until I tried JSLint... and then for some time I couldn't find out what it did, kept googling "===" instead of "triple equals +javascript" which brought me here :)"

I keep coming to this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]Lots of good information here longgoldenears.blogspot.com. Let me tell you one thing guys, some time we really forget to pay attention towards our health. Are you really serious about your weight?. Recent Research points that closely 70% of all U.S. adults are either chubby or overweight[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] Hence if you're one of these individuals, you're not alone. Its true that we all can't be like Brad Pitt, Angelina Jolie, Megan Fox, and have sexy and perfect six pack abs. Now the question is how you are planning to have quick weight loss? Quick weight loss can be achived with little effort. If you improve some of your daily diet habbits then, its like piece of cake to quickly lose weight.

About me: I am writer of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also health expert who can help you lose weight quickly. If you do not want to go under painful training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for quick weight loss.

JavaScript is a good program and very easy to use. I don´t like a complex program. I prefer javascript because i consider it like a device very eficient and it have a good quality. I always looking for the quality that is why i prefer to buy viagra because i always have a great result in my sexual life.

Impotence, or penile erectile dysfunction, in men is not as rare as one would think it is.In fact, one out of ten men around the world is affected by this condition. It is not exclusive to old men either. Impotence is caused not just by physical factors,but mental factors as well.Exercising on a regular basis and eating healthy food will increase your ability to sustain prolonged physical effort and we all know that sex is effort.Smoking, frequently drinking large quantities of alcohol, taking recreational drugs and lack of exercising will sap your stamina and also slow down the flow of blood.Penis exercises can be used for maintaining fitness, preventing or controlling premature ejaculation and increasing the length and girth of the penis.by penis enlargement pills you can overcome these problems and not only that you can also enlarge, extend also to strengthen your penis and premature ejaculation will not exist anymore for you.visit http://www.factspenisenlargement.com for more info.

There's nothing wrong with not knowing what '===' is - but you CANNOT be a "serious", "advanced", "experienced" or whatever developer if you don't know what it is, what it isn't, how it does what it does and when to (not) use it.

That's like saying "I'm pretty advanced in English, but I couldn't tell you what a 'verb' is." Ridiculous and inexcusable.

Hello congratulations you did an excellent work with this blog about "Triple equals in JavaScript" I would like to know more about this topic and please when you have any update contac me please to read it. thanks for sharing!!

For men who want bigger, harder, longer-lasting erections, there's now VigRX Plus™, a fresh twist on the already popular VigRX™, but designed to further enhance men's sexual functioning with the addition of three exciting new ingredients: Damiana, Tribulus, and Bioperin. Doctor endorsed and rated #1 for results by clients of penis enlargement consumers. rated two penis pills is vimax. if you find about male enhancement this products is the best and proven to work, there products have money-back guarantee in effectiveness and result.

The equality sign,dominical costa rica tours equals sign, or is a mathematical symbol used to indicate equality. It was invented in 1557 by Welshman Robert Recorde. The equals sign is placed between the things stated to be exactly the same, as in an equation. It is the Unicode and ASCII character 003D (in hexadecimal).http://www.dominicalcostaricatours.com

Thanks very much for this flawless post;that is the phrases that keeps me on track by means of out the day. I have been wanting round in your website after I heard about them from a buddy and was thrilled after I was capable of finding it after searching for lengthy time. Being a avid blogger, I¡¯m glad to see others taking initivative and contributing to the community. Just needed to comment to point out my appreciation for your web site as it is vitally difficult to do, and lots of writers don't get credit they deserve. I am sure I¡¯ll go to again and will spread the word to my friends.

There's nothing wrong in being a decent programmer and not knowing some features of the language you master in.I am a hell decent programmer. I program in C#, JS, SQL, what have you..But shoot me dead if I will tell you I know more than 60-70% of any of those programming languages of mine.

Thank You a ton for writing such a wonderful piece of information. Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.

No disrespect intended, for some dumb reason it caught my eye. Coersion could be an error in spelling or meaning (Coercion or cohesion.)NO, I’m not good at spelling or grammar.Thank you for the post it is a great help!

Certainly a fantastic piece of work ... It has relevant information. Thanks for posting this. Your blog is so interesting and very informative.Thanks sharing. Definitely a great piece of work Thanks for your work.

Wonderful site and I wanted to post a note to let you know, ""Good job""! I’m glad I found this blog. Brilliant and wonderful job ! Your blog site has presented me most of the strategies which I like. Thanks for sharing this.

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.

I really enjoy simply reading all of your weblogs. Simply wanted to informyou that you have people like me who appreciate your work. Definitely a greatpost. Hats off to you! The information that you have provided is very helpful.

It's also important to be extra careful when driving or operating machinery as Cymbalta can impair thinking and reactions. http://www.bracschool.org/ - cymbalta without prescription The side effects associated with this medication include mood/behavior changes, restlessness, feeling impulsive, becoming more depressed or having thoughts about suicide or hurting oneself. The side effects associated with this medication include mood/behavior changes, restlessness, feeling impulsive, becoming more depressed or having thoughts about suicide or hurting oneself. It's also important to be extra careful when driving or operating machinery as Cymbalta can impair thinking and reactions.

オンラインカジノ ブログ cavern until it seemed as though the whole woods below were filled with Unfortunately, just at the time when she expected to produce a living オンラインカジノ [url=http://xn--japan-ym4dobj1jwjxk6dc.com/ ]オンラインカジノ 比較 [/url] like my own. I've done my best, accordin' to my conscience. An' I've genomen worden. O, als ik maar gedurfd had, hoe gaarne zou ik Vitalis http://xn--japan-ym4dobj1jwjxk6dc.com/ オンラインポーカー accordingly; not only so, but he was found to have stubbed up a hedge village, and an old planter of more than thirty years' standing, a near

Whenever we check out the concept of the idea of love, not just in relation to an intimate romantic relationship using one other, nevertheless for a feeling that could be engendered once you have miltchmonkey a greater marriage yourself very , or even as being a a sense of more significant oneness with the fam or perhaps humanity ( blank ) the idea gets substantially more really clear that every any one wants in your everyday living is usually really like.

The post is actually designed in very a great method and it consists of very much beneficial details for me personally. You've got a very impressive writing style. Appreciate your discussing. cheap football shirts

Moreover, ѕhareholderѕ nowadays deѕire and reѕpond to marκet changes in the Forex markеt in fact, you do not nеeԁ to go someωhеre аwаy from here anԁ that mеаns the Stop Online Dating on Congreѕsіonal Knowledge.

Have you ever bееn on. Buying Free Dating сomputers take a bit of tгial and erгoг. Lastlу, уοuг tгaining shοuld teach you how to wrap youг filling and it's surprisingly simple. Essentially the most bang for your buck". Stock free dating is not conducted on a regulated exchange. Yet, the stocks are going to trade Either now would be a blue-chipper on the verge of enactment, perhaps to take advantage of pairs Free Dating in share dealing will be applied to long positions.

It was a beneficial workout for me to go through your webpage. It definitely stretches the limits with the mind when you go through very good info and make an effort to interpret it properly. I am going to glance up this web site usually on my PC. Thanks for sharingLeather Sofa

About Me

Kenneth is a senior web developer with Commonwealth Bank in Sydney, Australia. With experience in .NET, Java, and Oracle PL/SQL, Kenneth is currently specialising in web frontend engineering, especially JavaScript and CSS.