function cloneArray(array) {
var l = array.length;
var copy = new Array();
var i;
for (i = 0; i < l; i++) {
copy[i] = array[i];
}
console.log(copy);
}
return;
cloneArray([2, 3, 5]);
Thank you for your help, It doesn't give me an error, but it won't log anything on the console...
returnstatement outside your function?