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
const mixedArray = [
42,
"Hello",
true,
{ name: "Alice" },
[1, 2, 3],
null,
undefined,
function () {},
];
function CheckDataTypes() {
const counts = {
number: 0,
string: 0,
boolean: 0,
object: 0,
undefined: 0,
function: 0,
};
for (const element of mixedArray) {
const type = typeof element;
if (type === "object") {
if (type === null) {
counts.object++;
} else {
counts.object++;
}
} else if (type in counts) {
counts[type]++;
}
}
return counts;
}
const result = CheckDataTypes(mixedArray);
console.log(result);
NATIJA⬆️
πŸ‘3
console.log('1-MISOL NATIJASI');
class EnterMagicAcvarium {
Enter() {
return 100000;
}
}
class Asli extends EnterMagicAcvarium {}
//Child 14 yoshgacha ...
class Child extends EnterMagicAcvarium {
Enter() {
return 70000;
}
}
class Babby extends EnterMagicAcvarium {
Enter() {
return 0;
}
}
console.log("Magic Acvariumga KIRISH: " + new Asli().Enter() + " so'm");
console.log("14 yoshgacha kirish: " + new Child().Enter() + " so'm");
console.log("7 yoshgacha kirish: " + new Babby().Enter() + " so'm");
console.log('2-MISOL NATIJASI');
class Creator {
Voice() {
return "voice";
}
}
class Cat extends Creator {
Voice() {
return "MEOW";
}
}
class Cow extends Creator {
Voice() {
return "Moo";
}
}
class Dog extends Creator {
Voice() {
return "Wow-Wow";
}
}
class Sheep extends Creator {
Voice() {
return "Bee";
}
}
class Goat extends Creator {
// GOAT MESSI
Voice() {
return "Meees-si";
}
}
console.log("Cat voice: " + new Cat().Voice());
console.log("Cow voice: " + new Cow().Voice());
console.log("Dog voice: " + new Dog().Voice());
console.log("Sheep voice: " + new Sheep().Voice());
console.log("Goat voice: " + new Goat().Voice());
console.log('3- MISOL NATIJASI');
class Sleep {
sleep() {
return "8-10";
}
}
//Preschoolers (3-5 yoshli bolalar)
class Preschoolers extends Sleep {
sleep() {
return "10-13";
}
}
//SchoolAgeChildren (6-13 yoshli bolalar)
class SchoolAgeChildren extends Sleep {
sleep() {
return "9-11";
}
}
//Youth (14-25 yoshlilar )
class Youth extends Sleep{
sleep() {
return "7-9";
}
}
//Adults (25 yosh va undan kattalar)
class Others extends Sleep {
sleep() {
return "7-8";
}
}
console.log("Hamma uchun o'rtacha uyqu: "+new Sleep().sleep()+" soat");
console.log("3-5 yoshgacha belgilangan uyqu: "+new Preschoolers().sleep()+" soat");
console.log("6-13 yoshgacha belgilangan uyqu: "+new SchoolAgeChildren().sleep()+" soat");
console.log("14-25 yoshgacha belgilangan uyqu: "+new Youth().sleep()+" soat");
console.log("25 yosh va undan kattalar uchun belgilangan uyqu: "+new Others().sleep()+" soat");
console.log('4-MISOL NATIJASI ');

class CreatureFeed {
feed() {
return "feed";
}
}
class Dogfood extends CreatureFeed {
feed() {
return "Bone";
}
}
class Chikcenfood extends CreatureFeed {
feed() {
return "Grain";
}
}
class Catfood extends CreatureFeed {
feed() {
return "Mouse and Milk";
}
}
class Cowfood extends CreatureFeed {
feed() {
return "Grass";
}
}
class Sheepfood extends CreatureFeed {
feed() {
return "Grass and corn";
}
}
console.log("Dog eat: " + new Dogfood().feed());
console.log("Chikcen eat: " + new Chikcenfood().feed());
console.log("Cat eat and drink: " + new Catfood().feed());
console.log("Cow eat: " + new Cowfood().feed());
console.log("Sheep eat: " + new Sheepfood().feed());
4 ta misol natijasi birgalikda⬇️
VANIHOYAT TAYYOR !
πŸ‘3πŸ‘¨β€πŸ’»1