Videos in a proper sequence and with discussion support are available at my website (of course free). It's easier for me to address issues at one place, instead of drilling into every video. A quick word, please help others in the discussion too. courses.learncodeonline.in/learn/Javascript-for-2018-developer
"%" is a modulus operator, it is basically used to give us remainder of an operation. For example 100 % 2 will give us 0 , however 99 % 2 will give us 1
program to convert Celsius and Fahrenheit to Kelvin (1)celsius to kelvin let cesiusTemp=40; let kelvinTemp=celsiusTemp+273.15; console.log(kelvinTemp); (2) Fahrenheit to kelvin let FahrenheitTemp=40; let kelvin=(FahrenheitTemp-32)*(5/9)+273.15; console.log(kelvin);
Modulus operator gives us remaining value let complex = ((4+4)*5)%3 console.log(complex) and answer is "1" This code work like this 4+4 = 8 8*5 = 40 40/3 = 19 and remaning is 1 and answer is "1"
Hi Hitsh , I am sure many people r new to VS code, so can u also type shortcut command that you use in VS code for Commenting Block,adding Prenthesis in function etc. while you explain.
There will theoretically be a day wherein I don't first try to spell "celsius" as "celcius", but today was not that day. Anyway, thanks very much for this video series.
let allows you to declare variables that are limited in scope to the block, statement, or expression on which it is used. This is unlike the var keyword, which defines a variable globally, or locally to an entire function regardless of block scope.
@@sony07101988 bro you are amazing dud 'let' is a local variable (it limited up to a particular block ) but var is global variable it works up to entire function -thanks bro
Both can be used...doesn't matter... It's very controversial whether using let or using var is better...but both means the same:assigning variable (^_^)
The term Celsius.js is not recognized as the name of a cmdlet function sxript file or operable program check the spelling of name or if a path is included verify that the path is xorrect and try again category info object not found fully qualified error commandfound exception. Windows poweshell doeanot load commands feom the current location by default.... Answer ir
var and let are both used for function declaration in javascript but the difference between them is that var is function scoped and let is block scoped. It can be said that a variable declared with var is defined throughout the program as compared to let.
Hello Hitesh, I am a web designer having 1.6 years of experience in HTML and CSS, I just finished the javascript programme but I'm not confident about my code, I request you to please suggest me any idea to get perfect in writing javascript code.
I forgot to say that thank you so much for providing such wonderful tutorials... Good Job... I really like your videos and moreover your way of explanation very cool.
Yes, the difference is with the Scope, just read more about "local scope" and "global scope". you will find out. The good practice is to use the keyword "let" to declare a variable. it's a New ES6 standard.
Videos in a proper sequence and with discussion support are available at my website (of course free). It's easier for me to address issues at one place, instead of drilling into every video. A quick word, please help others in the discussion too.
courses.learncodeonline.in/learn/Javascript-for-2018-developer
"%" is a modulus operator, it is basically used to give us remainder of an operation. For example 100 % 2 will give us 0 , however 99 % 2 will give us 1
Wow! 5 videos in a day.. You are doing such a great hard work.. Mind blowing hard work.. And mind blowing video
Thanks in a million! “Great teachers are hard to find.”
program to convert Celsius and Fahrenheit to Kelvin
(1)celsius to kelvin
let cesiusTemp=40;
let kelvinTemp=celsiusTemp+273.15;
console.log(kelvinTemp);
(2) Fahrenheit to kelvin
let FahrenheitTemp=40;
let kelvin=(FahrenheitTemp-32)*(5/9)+273.15;
console.log(kelvin);
Modulus operator gives us remaining value
let complex = ((4+4)*5)%3
console.log(complex)
and answer is "1"
This code work like this
4+4 = 8
8*5 = 40
40/3 = 19 and remaning is 1 and answer is "1"
who the fuck gave him dislike , this man deserves a salute , god bless you brother
Dude, your explanation is very crisp and clear.
modulus is use to find the remainder.. eg 5%2=1
a%b = c
Mod operator returns remainder c after dividing a by b
For example
9%2 =1
this series is very very very usefull
Keep up the work
You are amazing.. Hard worker.. Content is super amazing
Though I am a Bengali but your English sounds like my native language.. Its awesome
Hi Hitsh , I am sure many people r new to VS code, so can u also type shortcut command that you use in VS code for Commenting Block,adding Prenthesis in function etc. while you explain.
The % operator also known as modulus returns the remain when ever two numbers are divided
e.g 7 % 4 = 3
There will theoretically be a day wherein I don't first try to spell "celsius" as "celcius", but today was not that day.
Anyway, thanks very much for this video series.
HEY.. your tutorials are awesome man!
Learning JavaScript as i promised yesterday....😘😘
Modulus (%) is used to find the remainder.
% operator is use to find remainder
Example - 9%2=1
Great brother ....mjja aa gya....ek din me js puri😁
@mohit soni Thanks for the explanation.
" % " is used to find remainder in any programming language.
Sir. hiteshChoudhary, if you can get me clear touch on html and css would be really great!....
I should have to learn JavaScript for the frontend developer course
Thanks Hitesh
Let or var??
The scope of "let" is limited while that of "var" is not.
Consider this example:
var i = 34
for(let i=0; i
let allows you to declare variables that are limited in scope to the block, statement, or expression on which it is used. This is unlike the var keyword, which defines a variable globally, or locally to an entire function regardless of block scope.
What happen if I use only var keyword?
@@sony07101988 thanks for good explanation ,this is really nice example
@@sony07101988 bro you are amazing dud 'let' is a local variable (it limited up to a particular block ) but var is global variable it works up to entire function
-thanks bro
dont you think that isntead of 5/9 if you directly use 1.8 the computational complexity of the code reduces
you are great dada
Woooooo Back To Back.. 5 Videos..
I am sure that you will definately complete JS course in a week or even in less than that... with this much of speed and consistency
I am surely looking for this as I have limited free and I want to use it as much as I can. makes me more productive. :D
the modolus operator gives the remainder of a divition.
Great video 👍🏾
sir what is the difference between var and let??
you have used both to assign variable...
var is used to initialise variables (memory holders whos values can be changed) and let is used to initialize constants
Both can be used...doesn't matter...
It's very controversial whether using let or using var is better...but both means the same:assigning variable (^_^)
Thanks
sir modulus is used get reminder ie.(1 or 0) Ex.. 12%4==1 or 12%5==0
Yash Shende not only 1 or 0 it may be any number
Yash Shende like 12%7==5
can you make any video on uses of Terminal and Command Line?
var and let difference??
The term Celsius.js is not recognized as the name of a cmdlet function sxript file or operable program check the spelling of name or if a path is included verify that the path is xorrect and try again
category info object not found
fully qualified error commandfound exception.
Windows poweshell doeanot load commands feom the current location by default....
Answer ir
Which textbook I need to go for JavaScript???
Sir what is difference between var and let ???
when i try to do that trick by selecting all
the text just deltes and writes the symbol
Now where is this command key in my keyboard?
why you are not using semicolumn
That is Modulus for remainders
I did my assignment..!
Is 'let' and 'var' are same in JavaScript?
Hey hitesh,,,, what is difference between let and var?
Works as remainder
hitesh bhai does let and var are same
% gives reminder
what does var mean
Hi Hitesh ...Why are you again using var instead of let.... should i use var or let
var and let are both used for function declaration in javascript but the difference between them is that var is function scoped and let is block scoped. It can be said that a variable declared with var is defined throughout the program as compared to let.
Thank you @@Streamlinedotcom
bro are you sure that you will continue javascript series or suddleny you will stop ?plz tell me i am starting flowwing you
modulous gives remainder
Here 5 * 4 = 20 / 2 = 10 + 4 output is 14 Ok?
Mudulator returns division remainder
u think his tuts are too confusing he taught something else in the variable lesson now he is starting the program with var
Can anyone tell me to learn java script and be a full stack developer do i have to gain very high programming knowledge.
present sir🙋 🙋 🙋
Why youtube is not sending the notification?..
yash rajan shukla RUclips take time to send notification almost 15-20 min
Same here...
you used for copy the statement
what is cmd+shift+it?
^_^ present sir ;-)
Can we not use var keyword for strings?
it is possible
just say
var name = 'John'
.
.
.
console.log(name);
it will print John
Hello Hitesh,
I am a web designer having 1.6 years of experience in HTML and CSS, I just finished the javascript programme but I'm not confident about my code, I request you to please suggest me any idea to get perfect in writing javascript code.
I forgot to say that thank you so much for providing such wonderful tutorials... Good Job... I really like your videos and moreover your way of explanation very cool.
Modulator is just the remainder
Sir I want to be best app developer plz help me to do
% used to find remainder
is there a difference between let and var?
Umesh Singh yes
Yes, the difference is with the Scope, just read more about "local scope" and "global scope". you will find out. The good practice is to use the keyword "let" to declare a variable. it's a New ES6 standard.
% proovide remainder
3 minutes maximum video extended to 13 minutes wao man
In my country = rest of the world
difference between var and let?
1 st viewer. 1st liker 1 commenter