Solved

When is it appropriate to use == vs ===

Posted on 2016-09-16
3
74 Views
Last Modified: 2016-09-19
When is it ever appropriate to use == vs ===? I hear strict equals is the way to go.
0
Comment
Question by:James Bilous
  • 2
3 Comments
 
LVL 35

Assisted Solution

by:Kimputer
Kimputer earned 500 total points
ID: 41801975
Indeed
0
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 total points
ID: 41803641
You changed question after I posted, never giving me a chance to answer.

Here's a good documentation on it.

https://developer.mozilla.org/en/docs/Web/JavaScript/Equality_comparisons_and_sameness


As with EVERYTHING in life, it's not that black and white. For every situation, requires a slightly different solution.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to print dynamic Google map and directions? 1 23
Dynamic Dropdowns 15 32
Autocomplete with Jquery Question 2 20
Why is initialize not a function? 8 21
Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question