Given the following code:
var old_Array =["One","Two","..."];
var len = old_Array .length;
var new_Array =[];
for(var i=0;i<len;++i)
{
new_Array.push(old_Array [i]);
}
After line [1], new_Array lines are filled.
- Is each element a reference to string elements in
old_Array,or just copy each element of a string? - Does the translator optimize the javascript interpreter / compiler - [1]
clicking links of each element of the string in
old_Array?
user6952310
source
share