Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     debugger

    B.

     with

    C.

     if

    D.

     use strict

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    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.


Be The First To Comment