#16 While loop in JavaScript

preview_player
Показать описание

More Learning :

Рекомендации по теме
Комментарии
Автор

@7:28 The value of i, while iteration is stopped, will equal 6 in the console. Because the iteration stops when i=6 or else it would have continued.

batambuzestephen
Автор

@7.23 mins
After written the following code

let i = 1
while(i<=5)
{
console.log("Hi");
i++;
}
console.log(i)

You had asked what would be the value of i

So the output is 6

yellayiaruna
Автор

Best Teacher of JAVASCRIPT i have ever experience<3 Love from PAKISTAN<3

macoder
Автор

5:10 post Increment Operator
7:24 "i" value will be 5

sanskarkeshri
Автор

@5:10
Short Hand Operator, discussed in Arithmetic Operators class

hemanthnathmaram
Автор

let x = "really"

let y = "thankfull to Naveen reddy"

let print = x + y;


console.log(print)

naveenterrific
Автор

Hello Navin,
I have written do while like below which executed infinite times and gave output of which took like 5 secs. can I know why?
k=1
do
{
console.log("Jyothi");
}
while(k<=6)

I have a hunch, is it because k was never equal or greater than 6 as i didn't write increment part?

hemanthnathmaram
Автор

It will be equal to 6, because the loop stop at 6 so as the increament too

Code-prince
Автор

At 1.08 you explained about loop! example u said every day you take the bath!! But its wrong for me LOL

TimeIsGreaterThanMoney
Автор

Hi bro using macbook pro one issue ..when using left swift key ....it minimise to desktop...i am tired of this and i want to stop this minimisation of any programme while pressing left swift provide me a i tried so much but didnot found anything

ravisunariya
Автор

Hi sir(annaya)
these tutorial videos are very helpfulto learn jscoding rapidly

vijaybamanagari
Автор

if you try to do this :

i=1
while(i<5){
console.log('hi');
i=i++
console.log(i);
}

we will go into infinite loop why ?

maheshappikatla
Автор

7.30 - value of i will be 6. First I thought to be 1 only, but ran in terminal, got 6

subhrajitjana
Автор

Great stuff here and nice starting beats

manasehnjoroge
Автор

We are missing ur josh like in python videos
"Hello aliens"

bhavaniprasad
Автор

Hi bro... Your videos is very nice... Keep it...

SWT-Sathya
Автор

am i the only guy here who guessed i=1, lol, Thanks bro youre doin a great job, Long live Telusko, happy that you represent Andhra

Jacob_ThisLife
Автор

perfectly explained
its easy to understand

WesleyOwen-xb
Автор

this was well explained ppl make it complicated

kagowanqobile
Автор

As we know the limitation like 5 times, we can use for loop right? Am I right in this case?

KavyaDM-yjvu