No video

Short Circuiting With && and || (JavaScript)

  Рет қаралды 3,886

ByteGrad

ByteGrad

Күн бұрын

Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
👉 Add authentication to your app FAST: bit.ly/3QOe1Bh
👉 NEW React & Next.js Course: bytegrad.com/c...
👉 Professional JavaScript Course: bytegrad.com/c...
👉 Professional CSS Course: bytegrad.com/c...
👉 Discord: all my courses have a private Discord where I actively participate
🔔 Email newsletter (BIG update soon): email.bytegrad...
⏱️ Timestamps:
0:00 - Solution
#webdevelopment #coding #programming

Пікірлер: 13
@ByteGrad
@ByteGrad Жыл бұрын
Hi, mastering JavaScript is critical if you want to be a modern, professional developer: www.udemy.com/course/professional-javascript-course/?referralCode=0C1D5752923168BC87C2 Also, if you are a front-end developer then mastering CSS (including Flexbox, CSS Grid, etc.) is equally important: www.udemy.com/course/professional-css/?referralCode=4C3C08E82629E6B15752
@pluderr3947
@pluderr3947 7 ай бұрын
Easy and straight to the point. Here's my insights I got from the video: && --> both conditions must be true in order to run the second part. If one is false, the condition is immediately false and will not even take into consideration, the second part. Both conditions must be true || --> if the first condition is true, immediately stop. if the first condition is false, then run the other condition.
@HocineKamikaz
@HocineKamikaz Жыл бұрын
Short and direct thanks mate 🌹
@asfandiyar5829
@asfandiyar5829 10 ай бұрын
Thank you. Just what I needed.
@vahidseyidov
@vahidseyidov Жыл бұрын
Great man. Keep it up🙌🏼🙌🏼
@shortsScroll
@shortsScroll 4 ай бұрын
thank you so very much
@guchierrez
@guchierrez Жыл бұрын
concise explanation, thanks
@user-jm2mj5ro2c
@user-jm2mj5ro2c 9 ай бұрын
Thank you! What theme are you using ?
@jorgeobsv
@jorgeobsv Жыл бұрын
Great Video! understood 😎😎 ty
@andromilk2634
@andromilk2634 7 ай бұрын
I have been testing and here's what I noticed : if you said console.log(9) && 1, you would still receive a log to your console because even though you evaluated the whole expression to "false" (console.log returns undefined), it still ends up logging your input as an indirect operation. So, the actual logging of the input still happens independently of whether it is evaluated as "true" or "false". Finally, it shortcircuits to the first false operand/evaluates its value, and if all operands happen to be true, it always takes the value of the last operand. Is this a correct understanding? Thanks
@rt-uh6mt
@rt-uh6mt 11 ай бұрын
So it's just a simplified if statement. Is that the point? Instead of writing an if statement you could just && or ||
@ByteGrad
@ByteGrad 11 ай бұрын
Yep
@rt-uh6mt
@rt-uh6mt 11 ай бұрын
@@ByteGrad thanks
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 24 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 90 МЛН
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 39 МЛН
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 24 МЛН
The BEST way to host Next.js websites
17:37
ByteGrad
Рет қаралды 37 М.
Easy Animated Border | HTML & CSS | 8 Minutes
7:51
WolfDenCode
Рет қаралды 33
Reference Vs Value In JavaScript
15:12
Web Dev Simplified
Рет қаралды 182 М.
Understanding Immutability in JavaScript
9:41
Deborah Kurata
Рет қаралды 4,9 М.
SHORT-CIRCUIT EVALUATION in JavaScript, Simplified
6:35
Deeecode The Web
Рет қаралды 1,5 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 608 М.
Do You Know Enough JavaScript To Learn React
6:28
Web Dev Simplified
Рет қаралды 421 М.
The Weird History of JavaScript
12:09
Fireship
Рет қаралды 1,2 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 24 МЛН