Vidyalelo
JavaScript · Q49

Basic And Variables

Programming · JavaScript · question 49

Q49

Among the keywords below, which one is not a statement?

A.
debugger
B.
with
C.
if
D.
use strict
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
use strict is a directive introduced in ECMAScript5. Directives are not statements because it does not include any language keywords. Also, it can appear only at the start of a script or at the start of a function body, before any real statemenst have appeared.