fork download
  1. class Test1 {
  2. constructor(arg) {
  3. return arg;
  4. }
  5. }
  6. class Test2 {
  7. constructor(arg) {
  8. return new String(arg);
  9. }
  10. }
  11.  
  12. console.log([new Test1("one"), new Test2("two")].join(";"));
Success #stdin #stdout 0.03s 16888KB
stdin
Standard input is empty
stdout
[object Object];two