I'M_DEVELOPERπŸ‘¨β€πŸ’»
15 subscribers
12 photos
3 videos
1 link
HELLOπŸ™‹β€β™‚οΈ , Welcome to my channel πŸ’«
I AM BACKEND NODE JS DEVELOPER πŸ‘¨β€πŸ’»
Download Telegram
Bismillahir rohmanir rohiym
πŸ‘1πŸ”₯1
Assalomu alaykum kanalimga xush kelibsiz !
πŸ‘1πŸ”₯1
class Creature {
constructor(age, brain, eyes) {
this.age = age;
this.brain = brain;
this.eyes = eyes;
}
}
class People extends Creature {
constructor(age, brain, eyes, intelect) {
super(age, brain, eyes);
this.intelect = intelect;
}
}
class DomesticAnimals extends Creature {
constructor(age, brain, eyes, InHome) {
super(age, brain, eyes);
this.InHome = InHome;
}
}
class WildAnimals extends Creature {
constructor(age, brain, eyes, InForest) {
super(age, brain, eyes);
this.InForest = InForest;
}
}
class OrdinaryBirds extends Creature {
constructor(age, brain, eyes, gentle) {
super(age, brain, eyes);
this.gentle = gentle;
}
}
class ProdetoryBirds extends Creature {
constructor(age, brain, eyes, wild) {
super(age, brain, eyes);
this.wild = wild;
}
}
class OrdinaryFish extends Creature {
constructor(age, brain, eyes, toothless) {
super(age, brain, eyes);
this.toothless = toothless;
}
}
class ProdetoryFish extends Creature {
constructor(age, brain, eyes, WithTooth) {
super(age, brain, eyes);
this.sharpTooth = WithTooth;
}
}
class IncectWithLeg extends Creature {
constructor(age, brain, eyes, WithLag) {
super(age, brain, eyes);
this.WithLag = WithLag;
}
}
class IncectWithoutLeg extends Creature {
constructor(age, brain, eyes, WithoutLeg) {
super(age, brain, eyes);
this.Withouteg = WithoutLeg;
}
}
const person = new People(18, 1, 2, "bor");

const cow = new DomesticAnimals(4, 1, 2, "true");
const lion = new WildAnimals(5, 1, 2, "true");
const parrot = new OrdinaryBirds(1, 1, 2, "true");
const eagle = new ProdetoryBirds(10, 1, 2, "carnivore");
const fish = new OrdinaryFish(1, 1, 2, "true");
const shark = new ProdetoryFish(2, 1, 2, "sharpTooth");
const ant = new IncectWithLeg(1, 1, 2, "six legs");
const worm = new IncectWithoutLeg(2, 1, 2, "true");

console.log(person);
console.log(cow);
console.log(lion);
console.log(parrot);
console.log(eagle);
console.log(fish);
console.log(shark);
console.log(ant);
console.log(worm);
πŸ‘3πŸ”₯1
natija
πŸ”₯1πŸ‘1
Kanaldan uzoqlashmang qiziqarli narsalar hali oldinda πŸ˜‰
πŸ”₯1πŸ‘Œ1
This moon is beautiful 😍
πŸ‘2πŸ”₯1
Firdavs Abay 🀝
πŸ”₯3🀩1
const dataObject = {
age: 25,
name: "John",
isActive: true,
hobbies: ["reading", "sports"],
address: { city: "New York", zip: 10001 },
greet: function () {
return "Hello";
},
id: null,
};

function importObject(obj) {
const result = [];
for (const key in dataObject) {
const value = obj[key];
const type = typeof value;
let category;
if (type === "object" || type === "function") {
category = "non-primitive";
} else {
category = "primitive";
}
result.push({ key, value, type, category });
}
return result;
}
const result = importObject(dataObject);
console.log(result);
❀1πŸ”₯1
TEPADAGINI NATIJASI βœ…
πŸ‘1