Use array.valueOf with a two dimensional array : valueOf « Array « JavaScript Tutorial






<html>
    <script language="JavaScript">
    <!--
    numbers = new Array(3,6,7);
    colors = new Array("Blue","Green","Red",numbers);
    document.write(colors.valueOf()); 
    -->

    </script>
</html>








11.36.valueOf
11.36.1.Array.valueOf()
11.36.2.Use array.valueOf with a two dimensional array