JSFiddle - React, Tailwind, and code Playground

by Ace Tributon

HTML

<p id='demo'>

</p>

JavaScript

var str="pleaseParseCommand: <@261911142857703444> <@261911142857703424> <@261911142857703484>".split(' '),hold= [];
str.forEach(string=>string!=='pleaseParseCommand:'?hold.push(string):'');
demo.innerHTML+=hold[Math.floor(Math.random()*hold.length)];

class Car {
  constructor(...rest) {
    //this.i = 0;
    //this.brand = brand;
    [
    	rest.toString()
    ].forEach((obj,j)=>{return this[obj]=[
    	rest
    ][j]})
  }
  getEverything(){return `you have a ${this.brand} with ${this.i=0} dents`;}
}

class infinite {constructor(...para){para.forEach((method,i)=>this[method]=[method])}}

var mycar = new Car("Ford",0);
var $infi = new infinite('ree');
demo.innerHTML+=mycar.getEverything();
$infi.ree=id=>alert(id);
$infi.ree('nuuu')

console.log((new infinite('nope','yep')).nope[0]);