Pergunta de entrevista da empresa FDM Group

What is the diffference between = and ==?

Resposta da entrevista

Sigiloso

9 de jul. de 2017

= is when u wanna set a certain value into the variable. ie: X = 5 ; (the value 5 is set into X) As for === is used when you wanna compare the variable to a certain value. ie. If X == 5; (IF X is equal to 5.)