Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now