JSFiddle - React, Tailwind, and code Playground
by mjmitche
JavaScript
var vegetables = ["kale", "brocoli", "kale"];
class Vegies {
constructor(vegetables) {
this.vegies = vegetables.filter(function(v){
return v.length > 3;
}, function(){
console.log(this.vegies.length, "doesn't run");
});
}
};
var n = new Vegies(["kale", "banana"]);