JavaScript Special Operators | Special Operators in JavaScript - JavaScript Tutorial 30

Поделиться
HTML-код
  • Опубликовано: 12 авг 2024
  • Notes for You:: JavaScript Special Operators
    typeof:
    - typeof operator returns the type of a given operand.
    Example Code:
    document.write(typeof 5); // number
    document.write(typeof "JavaScript"); // string
    document.write(typeof true); // boolean
    document.write(typeof undefined); // undefined
    document.write(typeof null); // object
    comma:
    - comma operator returns the RHS operand value.
    Example Code:
    var c = (2,2) + (3,5); // same as var c = 2+5
    document.write(c);
    new:
    - new operator is used to create new instance of an object.
    Example Code:
    var stud1 = new Object();
    stud1.name="Ramesh";
    stud1.rollNum = 1;
    document.write(stud1.rollNum," : ",stud1.name);//1:Ramesh
    delete:
    - delete operator is used to delete a property of an object.
    Example Code:
    delete stud1.rollNum;
    document.write(stud1.rollNum," : ",stud1.name);//undefined:Ramesh
    =========================================
    Follow the link for next video:
    JavaScript Tutorial 31 - Precedence & Associativity of Operators in JavaScript
    • Precedence & Associati...
    Follow the link for previous video:
    JavaScript Tutorial 29 - Bitwise Operators in JavaScript | JavaScript Bitwise Operators
    • JavaScript Bitwise Ope...
    =========================================
    JavaScript Tutorials Playlist:-
    • JavaScript Tutorials
    =========================================
    Watch My Other Useful Tutorials:-
    jQuery Tutorials Playlist:-
    • jQuery Tutorials
    jQuery UI Tutorials Playlist:-
    • jQuery UI Tutorials
    Bootstrap Tutorials Playlist:-
    • Bootstrap Tutorials
    =========================================
    ► Subscribe to our RUclips channel:
    / chidrestechtutorials
    ► Visit our Website:
    www.chidrestechtutorials.com
    =========================================
    Hash Tags:-
    #ChidresTechTutorials #JavaScript #JavaScriptTutorial

Комментарии • 16

  • @ChidresTechTutorials
    @ChidresTechTutorials  5 лет назад +2

    SUBSCRIBE, SHARE & SUPPORT:
    ruclips.net/user/chidrestechtutorials
    VISIT & LEARN AT FREE OF COST:
    ​www.chidrestechtutorials.com

  • @subbarayaparthasarathi5204
    @subbarayaparthasarathi5204 4 года назад +3

    Honestly speaking, I have not seen anyone teaching programming this easy. Thanks a lot. your videos has changed many people life

  • @RohitSharma-tx4he
    @RohitSharma-tx4he 5 лет назад +1

    brilliant video

  • @pretzshiva
    @pretzshiva 6 лет назад +1

    Excellent!

  • @user-eb4to4bx1o
    @user-eb4to4bx1o 10 месяцев назад +1

    Thank you so much

  • @prudhvibhupathyraju4033
    @prudhvibhupathyraju4033 2 года назад +1

    hi sir could you please explain about javascript classes

  • @sujandaku15
    @sujandaku15 4 года назад

    new function is not properly working

  • @voidchannel3388
    @voidchannel3388 2 года назад +1

    May I request you not to run your lecture message on screen which obstructs to see the code properly.Thank you.

  • @DrNice-qr8cj
    @DrNice-qr8cj 4 года назад +2

    var student1 = new object();
    student1.name = "John";
    document.write(student1.name);
    Why this doesn't work for me?

    • @ChidresTechTutorials
      @ChidresTechTutorials  4 года назад +1

      object() should be Object()

    • @DrNice-qr8cj
      @DrNice-qr8cj 4 года назад +1

      @@ChidresTechTutorials Ooouuups! Thanks

    • @vamsikrishna4972
      @vamsikrishna4972 10 месяцев назад +1

      javascript is case sensitive even i am also having same pblm by watching ur comments i got clarity thank u sir@@ChidresTechTutorials

    • @ChidresTechTutorials
      @ChidresTechTutorials  10 месяцев назад

      Welcome@@vamsikrishna4972