Can you explain this equation?

JavascriptOperators

== and != are called comparison operators. They are used to compare two values and see whether they are the same (==) or check if they are different (!=). E.g.

 = is used to assign a value to a variable. E.g.

 To Sum it up…

An = sign is used to assign a value to a variable: e.g.

An == sign is used to compare if two values are equal e.g.

A != sign is used to compare if two values are different e.g.

 

Share Button
Posted in Computer Science, JavaScript Tagged with: ,

Our Latest Book

Follow this blog