![]() ![]() Its going to be used in various places in your code. We usually use this comparison inside if condition to do something specific.ĭouble equal operator is a very common used operator after single equal. And this comparison returns true or false. In programming languages = sign or double equal sign means we are comparing right side with left side. What does = means in programming languages. So single equal or = sign makes left side equals to right side. ![]() $a = $b //after this line $a variable holds string 'I am b' cause this was on left side. declaring two variables and making first equal to second. Now left Side variable myName holds actually my Name. ![]() Makgin left side variable equal to a string. In example below i am going to show you how and what you can store using single equal operator. You can even store true or false, 1 or 0, any string with double quotes, numbers and you can even store variable into variable using equal operator. We can make left side equal to strings, equal to other variables, or results as well. In other words equal operator will make left side hold the value of right side. And the right side to equal is the value the left side’s label holds. The left side is the label of that variable or constant. Means if you declare something means a variable or constant on left side. = operator or single equal used to make left side equal to right side. What is the difference between single equal, double equal and triple equal. So let’s first of all describe the usage of each operator one by one to know. It’s very important to know when and where to use single, double and triple equal operators. Means this is basic syntax for almost all programming languages, like Java, PHP, JavaScript, C#, C++ and many more. These all operators used in programming languages for different purposes. So the difference between =, = and = is simple and clear. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |