Answers for "assign array to another array"

3

assign array to another array javascript

var ar = ["apple","banana","canaple"];
var bar = Array.from(ar);
alert(bar[1]); // alerts 'banana'

// Notes: this is for in In ES6, works for an object of arrays too!
Posted by: Guest on July-02-2020
0

assign array to another array

void copy(char[] a){....}

char[] a="Hello";

copy(a);
Posted by: Guest on February-28-2020

Code answers related to "assign array to another array"

Browse Popular Code Answers by Language