pwstrick / daily

一份搜集的前端面试题目清单、面试相关以及各类学习的资料(不局限于前端)
2.39k stars 242 forks source link

执行下面的代码后,arr1.length为__________。 #273

Open pwstrick opened 5 years ago

pwstrick commented 5 years ago

执行下面的代码后,arr1.length为__

var arr1 = "ping".split(""),
  arr2 = arr1.reverse(),
  arr3 = "pw".split("");
arr2.push(arr3);
anyrealx commented 3 weeks ago

5