Which of the below is the correct syntax for exectuing some code if "amt" is equal to 5000?
Answer options
A
True
B
False
Correct answer: True
Explanation
The correct JavaScript syntax for an equality condition is: if(amt == 5000) { ... }. Using == checks loose equality (value only) while === checks strict equality (value and type).