Это видео недоступно.
Сожалеем об этом.
Increment & Decrement Operators in JavaScript Part 1 - JavaScript Tutorial 26
HTML-код
- Опубликовано: 12 авг 2024
- Notes for You:: JavaScript Increment and Decrement Operators Part 1:
- are used to increment or decrement a variable value by 1.
++ (Increment Operator):
- is used to increment a variable value by 1
- Post Increment: variableName ++
- Pre Increment : ++ variableName
-- (Decrement Operator):
- is used to decrement a variable value by 1
- Post Decrement: variableName --
- Pre Decrement : -- variableName
Example Code1:
var a=10;
document.write("a=",a); //a=10
a++; // a=a; a=a+1;
document.write("a=",a); //a=11
var a=10;
document.write("a=",a) // a=10
++a; // a=a+1; a=a;
document.write("a=",a); // a=11
var a=10;
document.write("a=",a); // a=10
a--; // a=a; a=a-1;
document.write("a=",a); //a=9
var a=10;
document.write("a=",a); // a=10
--a; // a=a-1; a=a;
document.write("a=",a); //a=9
=========================================
Follow the link for next video:
JavaScript Tutorial 27 - Increment & Decrement Operators in JavaScript - Part 2
• Increment & Decrement ...
Follow the link for previous video:
JavaScript Tutorial 25 - Assignment Operators in JavaScript | JavaScript Assignment Operators
• JavaScript Assignment ...
=========================================
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
Thank sir for exaplanation
You are welcome. Please do subscribe, share and support.
And i would like to thank you so much, because the way u explain every single step is excellent if some1 want to learn perfectly they can understand easily the way u explain everything.
Thank u so much
I hope, one day I get to the level of programming, but you're great. So far I have watched so many tutorials, and still could not understand the logic and how it works. But You found the way easily to explain us "the secret".:) You are really the best. Thank you!
Most welcome
Teşekürler
En hoş geldiniz
I have a confusion...if pre increment and post increment having same output so where and when to apply post and where to apply pre increment
They have applications in looping in JavaScript..
Good❤
Thank you
var a = 33;
a = ++a;
document.write("++a = ");
result = ++a;
document.write(result);
why output show 35
and
var a = 33;
a = a++;
document.write("a++ = ");
result = ++a;
document.write(result);
why output show 34
Watch the next video in the playlist. You get the answer.
Why using the br tag
To push the next output down we use br tag.