Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which class provides an interface for invoking JavaScript methods and examining JavaScript properties?

  2. A.

     ScriptObject

    B.

     JSObject

    C.

     JavaObject

    D.

     Jobject

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    When a JavaScript object is passed or returned to Java code, it is wrapped in an instance of JSObject. When a JSObject instance is passed to the JavaScript engine, it is unwrapped back to its original JavaScript object. The JSObject class provides a way to invoke JavaScript methods and examine JavaScript properties.


Be The First To Comment