JavaScript asoslari. 9-Dars. Solishtiruv va tenglik operatorlari.

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2024
  • Ushbu darsimizda JavaScript'dagi solishtiruv va tenglik operatorlarini o'rganamiz.
    #virtualdars #dasturlash #js #дастурлаш

ความคิดเห็น • 51

  • @jaytalkss
    @jaytalkss 4 ปีที่แล้ว +5

    juda sodda tushuntiribsiz rahmat

  • @dfootball_fans
    @dfootball_fans 2 ปีที่แล้ว

    Assalomu alaykum aka. Dars uchun katta rahmat. 2 talik va 3 talik barobar belgisini juda zo'r tushuntirdingiz. Alloh rozi bo'lsin.

  • @ibrohimbobojonov6197
    @ibrohimbobojonov6197 3 ปีที่แล้ว +1

    Assalomu alaykum. Alloh rozi bo'lsin.
    katta rahmat

  • @azamatxayitboyev2155
    @azamatxayitboyev2155 2 ปีที่แล้ว

    Alloh rozi bo'lsin.

  • @uzbekturan7084
    @uzbekturan7084 3 ปีที่แล้ว

    Birinchisi true,ikkinchisi false bo'ldi.Darslik uchun katta rahmat!!!

  • @abdulloakramov7941
    @abdulloakramov7941 2 ปีที่แล้ว

    assalomu allaykum dars uchun raxmat:

  • @iqlas_developer
    @iqlas_developer 2 ปีที่แล้ว

    zo'r chiqibdi dars 🙂

  • @ikabulov_eng
    @ikabulov_eng 3 ปีที่แล้ว

    Darslar uchun raxmat katta ustozni kurslari > boshqa pullik kurslar = true albatta shunchaki yozdim lekin ayni haqiqat

  • @abdulhaymehmonov7982
    @abdulhaymehmonov7982 3 ปีที่แล้ว

    assalomu alekum.
    Aka katta raxmat darslar uchun

  • @a23sde
    @a23sde 4 ปีที่แล้ว +6

    Assalomu aleykum, Farhod oka.
    1. >
    2. True
    3. Natijasi 'False' bo'ladi, chunki '2' '12' ga teng emas.
    DArsliklar uchun raxmat kottakon!

  • @romkachek305
    @romkachek305 3 ปีที่แล้ว +1

    vov menga ham shu o`xshash natijalar chiqdi dars zo` o`tmoqdalar

  • @БобурИсоков-у5у
    @БобурИсоков-у5у 4 ปีที่แล้ว +1

    Assalomu aleykum. Farhod aka tekshirib bering.
    // 9-dars uy vazifa
    // 1-savol
    x = 10;
    y = 5;
    console.log(x > y); // true
    // 2-savol
    let x = 5;
    console.log(x !== '5'); // true "!==" emas degani
    //3-savol
    console.log("2" == "12"); // false sonlar teng emas.

  • @JAMSHID_1978
    @JAMSHID_1978 4 ปีที่แล้ว +1

    1) 10 > 5
    2) true чунки number !== string
    3)true чунки икковиям string

  • @zamanbekkenesbaev6006
    @zamanbekkenesbaev6006 3 ปีที่แล้ว +2

    1. x = 10; y = 5; console.log(x > y); TRUE
    2. x = 5; console.log(x !== '5'); TRUE
    3. console.log("2" == "12"); FALSE chunki ikki sonning qiymatlari ikki xil.

  • @abdulhayyaqubov7383
    @abdulhayyaqubov7383 5 ปีที่แล้ว +2

    Assalomu alaykum, dars uchun rahmat, Alloh rozi bo'lsin. Savollar bo'lgani zo'r bo'libdi.
    Javoblar:
    1)
    let x = 10;
    let y = 5;
    console.log(x > y); //javob true chiqishi uchun ">" belgisi zarur
    2)
    let x = 5;
    console.log(x !== '5'); // javob: true // izoh shu joyda bo'sh tekshiruvmi yoki qat'iy tekshiruvmi, console true beryapti,
    agarda, console.log(x === '5') shuni tekshirsak javob false chiqadi, sababi number string
    console.log(x !=== '5') shu holat yuqmi ?
    xatolik chiqyapti:
    "SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)"
    3)
    console.log("2" == "12"); // javob: false

  • @cybershell3567
    @cybershell3567 4 ปีที่แล้ว +2

    Assalom alekum oka bu darslariz 2018 yilniki, hozirgi kungaca javascriptda xic qanaqa yengilanish bomadmi

    • @virtualdars
      @virtualdars  4 ปีที่แล้ว +11

      Vaaleykum assalom. Yangilanish bo'ldi degani bu kod ishlamaydi degani emas. Yangilanish bo'lsa yangi dars chiqaraman, Xudo hohlasa.

  • @Murod-uj3hj
    @Murod-uj3hj 3 ปีที่แล้ว

    x>y 1savol
    fols 2savol yolg'on
    fols 3savol yolg'on
    rahmat!

  • @nodirkarimov24
    @nodirkarimov24 6 ปีที่แล้ว +2

    1chi savolga javob x>y
    2chi savolga javob true teng emas.
    3chi savolga Javob false chunki qiyat teng emas.

  • @sanjar429
    @sanjar429 4 ปีที่แล้ว +4

    1. console.log(x !== y); yoki x > y ;
    2. true
    3. false bo'ladi . sababi == lik bu oddiy tenglik bo'lib 2 bilan 12 ni solishtiradi va bu xato ekanligini ekranga chiqaradi

  • @Doniyorcs50
    @Doniyorcs50 3 ปีที่แล้ว

    let x = 5;
    console.log(x !== '5');
    true boladi chunki ma'lumot turi 2 xil

  • @ruzimurod865
    @ruzimurod865 3 ปีที่แล้ว +1

    1. >;yoki >=; yoki !==;
    2. true bo'ladi '5' bu besh string
    3 false bo'ladi sababi qiymat tenglashtirilayapti oddiy tenglik shuning uchun false

  • @azizbektojiddinov539
    @azizbektojiddinov539 3 ปีที่แล้ว

    x > y
    true
    false 2 ta tenglik faqat qiymatlariga qaraydi shunda 2 !== 12 boladi
    Rahmat darslik uchun

  • @NSHB82
    @NSHB82 4 ปีที่แล้ว +3

    Vaalaykum assalom.
    Bizda 1-sovolning javobi 3 hil variantda true bo'ldi:
    1- (!==);
    2- (>);
    3- (>=);
    2-savolning javobi rtue bo'ldi
    true
    3-savolning javobi false bo'ldi nima uchun deganda "luz" == solishtiruv operatiri ishlatildi
    luz operatiri ishlatilganda tomonlarni qiymatini solishtiradi luz tomonlarni faqat qiymatini o'qiy oladi tomonlarning turini o'qiy olmaydi.
    false
    Assalomu alaykum.

  • @cybershell3567
    @cybershell3567 4 ปีที่แล้ว

    1 savolda 2 hil soliwtiruv belgisni qoysa boladi,
    x != y yoki x > y
    2 savol natijasi false cunki x = 5 boganda x ning turi number bovotti, natijani tekwiriwda numberdan tawqari stringni ham soliwtirilvotti
    3 savolniki
    2 bn 12 string bogani bn qiymati teng emas, bu ham false

  • @ysanatabd8878
    @ysanatabd8878 6 ปีที่แล้ว

    Javob:
    1) > va !=
    2) False
    3) False

  • @xusniyorkadirov4143
    @xusniyorkadirov4143 5 ปีที่แล้ว

    yana 1 savol hind tilini hindistonliklar bilan gaplashish uchun organamiz das turlash tilini esa kanpiyuter bilan sozlashish unmi yani notbuk tilini bilgan u bemalol notbukbilan ishlab inga vazifa bera oladi
    fikrim togrimi

    • @virtualdars
      @virtualdars  5 ปีที่แล้ว +1

      Dasturlash tili yordamida kompyuterda bizga kerak bo'lgan biron vazifani bajarib berishi uchun unga buyruqlar beramiz.

  • @satimovxumoyun9006
    @satimovxumoyun9006 2 ปีที่แล้ว

    1.!==: >=
    2.true

  • @bunyodermatov694
    @bunyodermatov694 10 หลายเดือนก่อน +1

    1. !==
    2. true
    3. false chunki qiymatini aniqlayapti qiymati teng emas, turi bir xil lekin

  • @javlonbekerkinov8460
    @javlonbekerkinov8460 2 ปีที่แล้ว +1

    Assalomu alaykum.
    birimchi savolga javob :
    let x = 10;
    let y = 5;
    console.log(x > y); // true
    console.log(x >= y); // true
    console.log(y < x); // true
    console.log(y

  • @mbreti362
    @mbreti362 4 ปีที่แล้ว

    Hammada hato bob yotiptiku i tak jovobla
    1) x > y yoki !==
    2) false cunki x !== '5' teng bomasligi kere agarda == boganda true ciqardi === boganda false cunki toifasi har hl
    3) false qiymat br briga teng emas

  • @FarhodXolmurodov
    @FarhodXolmurodov 5 ปีที่แล้ว

    1) x>y, 10>5
    2) Natija true bo'ladi! Chunki 5-number turda "5" esa string turda. Demak X!=="5" number bilan string o'zgaruvchi bir biriga teng emas!
    3) Ikkalasi ham string turda yana raqamlar ham bir xil emas natija false buladi!

  • @martinwilliams8089
    @martinwilliams8089 2 ปีที่แล้ว

    1 savol javobi
    >=
    2 savol javobi
    false
    3 savol javobi
    false

  • @Doniyorcs50
    @Doniyorcs50 3 ปีที่แล้ว

    Assalomu alaykum
    x = 10;
    y = 5;
    console.log(x > y);
    console.log(x >= y);
    console.log(x !== y);

  • @umidzhonofficial1533
    @umidzhonofficial1533 3 ปีที่แล้ว

    Assalomualeykum Farhod aka ,Pythonda Input operatori bor malumotlarni kiritish uchun ,Java JavaScriptda ham shunday operator bormi?

    • @virtualdars
      @virtualdars  3 ปีที่แล้ว

      Vaaleykum assalom, Umdjon. Pythondagi Input operatori foydalanuvchidan terminalda kiritgan ma'lumotni o'qish uchun ishlatiladi. JavaScript esa ko'proq web browserda ishlatiladi. Lekin Nodejs da JS yordamida backend yozish mumkin. Va unda ham readline() bor.

    • @umidzhonofficial1533
      @umidzhonofficial1533 3 ปีที่แล้ว +1

      @@virtualdars rahmat

  • @murodullohhasanov4238
    @murodullohhasanov4238 4 ปีที่แล้ว +1

    Assalomu alaykum
    1) (x >= y) true.
    2) false.
    3) false, string kurinishdaku true bulishi kerak edi shuni tushunmadim...???

    • @Qwertyqwerty-tq3we
      @Qwertyqwerty-tq3we 4 ปีที่แล้ว

      ===
      3 ta tenglik qiymati va turini tekshiradi.
      == 2ta tenglik faqat qiymatni

  • @jamshidabdukarimov8946
    @jamshidabdukarimov8946 3 ปีที่แล้ว +1

    Assalamu aleykum
    1) >, >=, !=
    2) true
    3) false, chunki 2 bilan 12 bir biriga teng emas

  • @aseshn_pro
    @aseshn_pro 4 ปีที่แล้ว

    1) x > y;
    2) true
    3) false, ichidigi qiymatlari 2 teng emas 12 ga

  • @javlonbekerkinov8460
    @javlonbekerkinov8460 2 ปีที่แล้ว +1

    ikkinchi savol javobi
    let x = 5;
    console.log(x !== '5'); // true
    javobi : true

  • @javlonbekerkinov8460
    @javlonbekerkinov8460 2 ปีที่แล้ว +1

    '2' == '12' buning natijasi FALSE chiqadi , chunki turi bir xil qiymati har xil

  • @PESvsFIFA-xg9xg
    @PESvsFIFA-xg9xg 4 ปีที่แล้ว

    1. x>y
    2. true
    3. false buladi. chunki qiymatlari teng emas

  • @Doniyorcs50
    @Doniyorcs50 3 ปีที่แล้ว

    x = '2';
    y = '12';
    console.log(x == y);
    false, chunki qiymat teng emas

  • @kosimjon.abdukarimov302
    @kosimjon.abdukarimov302 3 ปีที่แล้ว

    1) x > y yoki x !== y;
    2) true;
    3) false; chunki qiymati teng emas.

  • @FFURQATT
    @FFURQATT 4 ปีที่แล้ว

    Darslarni kuzatib boryapmanu lekin mohiyatiga tushunmayapman. Bular nima uchun kerakligiga.

    • @virtualdars
      @virtualdars  4 ปีที่แล้ว +8

      Dastur yozishdan maqsad dasturning algorithmini yozib u bilan ishlarni avtomatlashtirish. Oddiy misol bu kalkulyator dasturi. Masalan, kalkulyator ikkita sonni bir-biriga qoshish uchun nima qilish kerak? Bunimg uchun bizga qoshuv yoki amal degan funktsiya kerak. Funktsiya ichida o'sha sonlarni har birini qandaydir o'zgaruvchida saqlash kerak. Keyin osha ikkita o'zgaruvchini qo'shish kerak. Natijachi? Qoshuv natijasini esa qaytarib berish kerak.
      Endi, shart nima uchun kerak? Faraz qiling siz dasturingizda foydalanuvchi yoshi 18dan kattaligini tekshirmoqchisiz. Shunda osha foydalanuvchini yoshi uchun ishlatilgan o'zgaruvchini 18 bilan solishtirasiz.
      Mana shunaqa kichkina bloklar - o'zgaruvchi, funktsiya, if sharti, solishtiruv va boshqa operatorlar algoritmni tashkil etadi. Mana sizga mohiyat.