Given
a=["a", "b", "c"];
x=["x", "y", "z"];
combine/join the two list: the expected result:
ax=["a:x", "b:y", "c:z"];
How?
Thanks
Given
a=["a", "b", "c"];
x=["x", "y", "z"];
combine/join the two list: the expected result:
ax=["a:x", "b:y", "c:z"];
How?
Thanks
var ax = [];
for (var i = 0; i < a.length; i++) {
ax.push(a[i] + ":" + x[i]);
}
برچسب:
نویسنده: استخدام کار