What techniques can be used to define a class in JavaScript, and what are their trade-offs? What techniques can be used to define a class in JavaScript, and what are their trade-offs? javascript javascript