Sabe
High-quality Classes and Tutorials for All
Sabe is a derivative of the Spanish word saber which means to know.
Whether you are new or more experienced, you learn something new every day, and we aim to be a great place to do just that. With our high-quality classes and tutorials, we craft engaging and practical information so that you can learn how to master your craft.
Become a better developer!
Learn with Powerful Examples
JAVASCRIPTclass Pet {
constructor(name, weight, price) {
this.name = name;
this.weight = weight;
this.price = price;
}
getInfo() {
return "I'm " + this.name + ". I weigh " + this.weight + " pounds and cost $" + this.price + ".";
}
}
const pet = new Pet("Fluffy", 20, 200);
console.log(pet);
console.log(pet.getInfo());
JAVASCRIPTPet {
name: "Fluffy",
weight: 20,
price: 200
}
I'm Fluffy. I weigh 20 pounds and cost $200.