Web Technology
Accenture PrimereasyWeb TechnologyJavascript

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).

Related Accenture Web Technology questions

Practice more Accenture Web Technology questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.