Solved

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

Posted on 2016-09-16
3
67 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

803 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