Tell us what’s happening:
Describe your issue in detail here.
Hello guys
Can anyone please tell me what is this meaning ??
It should be noted that the class syntax is just syntax, and not a full-fledged class-based implementation of an object-oriented paradigm, unlike in languages such as Java, Python, Ruby, etc.
Your code so far
// Only change code below this line
// Only change code above this line
const carrot = new Vegetable('carrot');
console.log(carrot.name); // Should display 'carrot'
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71
Challenge: ES6 - Use class Syntax to Define a Constructor Function
Ya, if you aren’t familiar with real object-oriented programming languages, for example java, then this little blurb probably doesn’t make a lot of sense and could potentially cause confusion. I’m tempted to say just ignore it for now, it’s not really that important for learning JS, at least not at this stage in your learning.