Jump to content

Multidimensional array error


fai960820

Recommended Posts

<script>int[][] num = new int[4][5];num[1][1]={0,1,2,3,4};alert(num[1][2]);</script>

This give my an error " Uncaught SyntaxError: Unexpected token ] " (shown by chrome) #for the "int[][] num = new int[4][5];" line Please help.

Edited by fai960820
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...