Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let Recipe = (() => {
- let nextId = 0;
- class Recipe{
- constructor(name, rating, image, category){
- this._id = nextId++;
- this._name = name;
- this._rating = rating;
- this._image = image;
- this._category = category;
- }
- set setName(name){
- this._name = name;
- }
- set setRating(rating){
- this._rating = rating;
- }
- set setImage(image){
- this._image = image;
- }
- set setCategory(category){
- this._category = category;
- }
- }
- return Recipe;
- })();
Add Comment
Please, Sign In to add comment