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
SUBSCRIBE, SHARE & SUPPORT:
ruclips.net/user/chidrestechtutorials
VISIT & LEARN AT FREE OF COST:
www.chidrestechtutorials.com
Honestly speaking, I have not seen anyone teaching programming this easy. Thanks a lot. your videos has changed many people life
brilliant video
Excellent!
Thank you so much
Welcome🎉
hi sir could you please explain about javascript classes
Sure will try my best in upcoming videos
new function is not properly working
May I request you not to run your lecture message on screen which obstructs to see the code properly.Thank you.
Click on captions button available under every RUclips video.
var student1 = new object();
student1.name = "John";
document.write(student1.name);
Why this doesn't work for me?
object() should be Object()
@@ChidresTechTutorials Ooouuups! Thanks
javascript is case sensitive even i am also having same pblm by watching ur comments i got clarity thank u sir@@ChidresTechTutorials
Welcome@@vamsikrishna4972