I get the error message below in scratchpad upon hitting the page which I don't understand why.
<html>
<script>
var pr_arr = function(){
var arr[0] = new array(1,2,3);
arr[1] =new array("jr","ch","mh");
arr[2] = new array('color',1,2);
vardump(arr);
}
var pr_arr1 = function(){
var arr =[[1,2),["jr","ch"],['color',1]];
alert(arr[0][0]);
}
pr_arr();
pr_arr1();
</script>
</html>
Exception: missing ; before statement
@Scratchpad/2:6
/
/
Exception: missing ; before statement
@Scratchpad/2:6
*/
thanks,