Loops in JavaScript
Loops : while, for & do ... while
A loop is a sequence of instructions or commands that are executed repeatedly until a certain condition is reached. Mostly you'll find 3 types of loops. For loops, while loops, and do while loops.
While loops are the easiest to understand. The instructions you set inside brackets are executed, until a condition inside parentheses is satisfied. Use while keyword to create a loop. Inside parentheses type your condition. And the process begins.
Note that the loop will stop only if the condition is false. If you set a condition that is always true, you will end up with an infinite loop. Infinite loops is a bad idea, since they can cause a lot of bugs, and your code won't reach anything after the loop.
Do while loops are nearly the same as while loops, but the difference is that, when you create a do while loop, you first provide the instructions, and then the condition. Unlike a while loop, do while loop will always be executed at least once. The logic is so, that a computer executes the instructions, afterwards it looks at the condition, whether to repeat the process or not.
For loops do not work with conditions alone. You need to provide 3 values in parentheses. The first value is the initial variable. The second value is the instruction, that is to be executed after each iteration. The third is the condition. Everything else is nearly the same as with while loops.
#tutorial #beginners #loop
JavaScript Intro: https://youtu.be/bmgh-qff820
JavaScript Objects: https://youtu.be/JvDTwc3Cc68
JavaScript Escape Character: https://youtu.be/NiAOBWcnd9Y
JavaScript Constructing Strings: https://youtu.be/inQ8mT75-F0
JavaScript Null & Undefined: https://youtu.be/U1K86V2BEfQ
Var, Let & const | Difference: https://youtu.be/XNZFgVtWIIw
#javascript #full #course #free #crashcourse #function #objects #loops #interview #questions #basics #project #web #development #software #frontend #backend #information #example #event
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Loops in JavaScript», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.