91.6k views
0 votes
One equal sign (=) assigns a value to a variable whereas three equal signs (===) is used to compare two different variables.

a. true
b. false

User Chauntelle
by
7.3k points

1 Answer

2 votes

Final answer:

The statement is true; one equal sign assigns a value, while three equal signs are used for strict comparison in programming languages like JavaScript.

Step-by-step explanation:

The statement presented by the student is true. In many programming languages, a single equal sign (=) is indeed used for assigning a value to a variable. On the other hand, three equal signs (===) are commonly used in JavaScript to perform a strict comparison between two values, which checks both the value and the type of the variables. This is different than using two equal signs (==), which performs a loose comparison, converting the operands to the same type before making the comparison.

User Lateralaus
by
8.6k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.