coding with ☕️
2 subscribers
262 photos
14 videos
11 files
165 links
Anwendungsentwicklung
Download Telegram
function hello() {
console.log("Salom, dunyo!");
}
hello(); // Funksiyani chaqirish
function sayHello(name) {
console.log("Salom, " + name + "!");
}
sayHello("Ali"); // Chaqirish: Salom, Ali!
function sum(a, b) {
return a + b;
}
let result = sum(5, 3); // Chaqirish
console.log(result); // Natija: 8
let greet = function(name) {
return "Salom, " + name + "!";
};
console.log(greet("Hasan")); // Chaqirish
const multiply = (a, b) => a * b;
console.log(multiply(4, 2)); // Chaqirish: 8
(function() {
console.log("Bu funksiya avtomatik chaqiriladi!");
})();
const person = {
name: "Ali",
greet: function() {
console.log("Salom, men " + this.name);
}
};
person.greet(); // Chaqirish: Salom, men Ali
console.log(${this.firstName} age is: ${age} );
}

firstPerson.convertAge(19)
secondPerson.convertAge(18)
function Person(firstName, LastName ) {
this.firstName = firstName
this.LastName = LastName
this.isHuman = true
this.greeting = () => {
console.log(this);

}
}

const fistPerson = new Person("Fotima", "Nishonova")

console.log(fistPerson.greeting());
function calc(number) {
return this * number
}

const double = calc.bind(2)
const trouble = calc.bind(3)

console.log(double(12));
console.log(double(24));

console.log(trouble(15));
console.log(trouble(30));
class StatusPerson extends Person {

}
Sammi: 01.24.2025