(length:3); error

Don’t type the parameter names when passing arguments to constructors or functions. So instead of new Array(length:3) just type new Array(3).