Equal to == operator is a relational operator which compares the left side and right side values and if they are equal it returns true else false.
Assignment operator(=) basically assigns the value to the variable written on the left side.