Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Objects:JavaArray:toString

From MDC


Contents

[edit] Summary

Returns a string representation of the JavaArray.

Method of JavaArray
Implemented in: JavaScript 1.1, NES 2.0

[edit] Parameters

None.

[edit] Description

Calls the method java.lang.Object.toString, which returns the value of the following expression:

JavaArray.getClass().getName() + '@' +
     java.lang.Integer.toHexString(JavaArray.hashCode())

[edit] Backward Compatibility

[edit] JavaScript 1.3 and earlier

The toString method is inherited from the Object object and returns the following value:

[object JavaArray]