I'M_DEVELOPER👨‍💻
15 subscribers
12 photos
3 videos
1 link
HELLO🙋‍♂️ , Welcome to my channel 💫
I AM BACKEND NODE JS DEVELOPER 👨‍💻
Download Telegram
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
Reaksiya bosish tekin 😉
2👍1
Let Me Down Slowly (Lyrics)
Alec Benjamin
@TinglaBot orqali istagan musiqangizni tez va oson toping!
🔥2
GOAT⚽️
🤮3💯1🏆1
• Агар Аллоҳ сўраганингни берса, сен иймонлисан!
• Агар сал кечиктириб берса, сабрлисан!
• Агар бермаса, сен ундан буюгига лойиқсан!
💯3
function Animal(name, count, year) {
this.name = name;
this.count = count;
this.year = year;
}
const dog = new Animal("dog", 6, 3);
const cat = new Animal("Cat", 3, 2);
console.log(dog);
console.log(cat);
💯1
const computer = {
model: "Asus Tuf Gaming A15",
price: "830$",
count: 3,
};
function getInfo(computer) {
return computer;
}
const s = getInfo(computer);
console.log(s);
// 2-usul
function Computer(model, price, count) {
this.model = model;
this.price = price;
this.count = count;
this.getInfo = function () {
return `Model: ${this.model} , Price: ${price} , Count: ${count}`;
};
}
const Asus = new Computer("Hp i513", "550$", 3);
console.log(Asus.getInfo());