Paste Search Dynamic
elem
  1. let smpl = "qwerasdf";
  2. let ary  = smpl.split("|");
  3. console.log(ary.toString());
  4. let elem1 = ary[0];
  5. let elem2 = ary[1];
  6. console.log(`elem1: [${elem1}]nelem2: [${elem2}]`);
Parsed in 0.001 seconds