ARTICLE AD BOX
Generally, we either use foo/bar or a, b and c stuff, but there isn't much attention to class ideas.
I suggest this:
class test { constructor(a, b) { this.a = a || "Hello" this.b = b || "World!" } join(text = []) { if (!Array.isArray(text)) return ""; const allStrings = text.every(item => typeof item === "string"); if (!allStrings) return ""; return text.join(" "); } } const ball = new test("Dog", "Cat"); ball.join(["Hello", "World!"]);It's more of a robust dream than anything serious, but generally asking if this could be an introduction
