- Katılım
- 22 Aralık 2023
- Mesajlar
- 697
- Makaleler
- 1
- Çözümler
- 3
- Beğeniler
- 198
Merhaba. Aşağıda kurmuş olduğum JS mantığı doğru mu?
[CODE lang="javascript" title="JavaScript"]let x = 10;
let y = 15;
let z = 10;
if (x > y && x > z) {
console.log('x is big.');
} else if (y > x && y > z) {
console.log('y is big.');
} else if (z > x && z > y) {
console.log('z is big.');
} else {
console.log('Numbers are equal.');
}[/CODE]
[CODE lang="javascript" title="JavaScript"]let x = 10;
let y = 15;
let z = 10;
if (x > y && x > z) {
console.log('x is big.');
} else if (y > x && y > z) {
console.log('y is big.');
} else if (z > x && z > y) {
console.log('z is big.');
} else {
console.log('Numbers are equal.');
}[/CODE]