Kuroshi Posted January 31, 2021 Report Share Posted January 31, 2021 I am using multiple script. Sometimes, they are using '=' and sometimes '==' may I know what is the difference of one equal sign and two equal sign in a Javascript? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Barbie Posted January 31, 2021 Report Share Posted January 31, 2021 Hi @Batchini, I think the '=' is used for assigning a value in a variable and the '==' is used for comparing two variables. You may also refer to this article that I searched:https://stackoverflow.com/questions/523643/difference-between-and-in-javascript I hope this helps. - Barbie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.