Truthy and Falsy Assignment in JavaScript, Short Circuit True False Assignment, Codecademy ES6 JS

Channel:
Subscribers:
7,740
Published on ● Video Link: https://www.youtube.com/watch?v=JLDkgFaO16s



Duration: 3:24
265 views
3


In this JavaScript tutorial from Codecademy's Learn JavaScript course, Conditional Statements section we take a look at the lesson, "Truthy and Falsy Assignment". In it, we learn of a short-hand way of checking if a value is defined, and if it is defined (truthy) then we can give a variable that value, if the value is not defined (falsy) then we would be able to set up a default value to give our variable. We are given 2 examples that show how this is done. The first example takes many more lines, but in the second example, we learn the short-hand circuit way which allows us to quickly check if a value is true or false, and if it is true then we are able to assign that value to our variable. Understanding this short-hand circuit truthy and falsy assignment in JavaScript is key in optimizing and minimizing your codebase. Potential employers will love to see that you are able to use shorthand assignments when given any problems to solve, as they allow for readability and code clarity. Understanding True and False short circuit evaluation will make a big difference from a beginner programmer, and a more advanced developer for JavaScript, and any other programming language!




Other Videos By We Will Code


2022-02-21Learn JavaScript, What Are Functions, Codecademy Full Programming Course, JS ES6 Functions Explained
2022-02-21Learn JavaScript Control Flow Quiz on Codecademy, JavaScript Conditional Statements Review, JS Tips
2022-02-21Pokemon Legends Arceus, The Researcher of Myths, Grueling Grove, Defeat Vespiquen, Ancient Retreat 2
2022-02-21Pokemon Legends Arceus, The Researcher of Myths, Grueling Grove, Defeat Vespiquen, Ancient Retreat 1
2022-02-20Learn JavaScript Race Day Explained, Codecademy Programming Walkthroughs, and Tutorial, Conditionals
2022-02-20Program a Magic Eight Ball with JavaScript, Walkthrough for Magic Eight Ball on Codecademy, Learn JS
2022-02-19Conditional Statements Review on Codecademy, Understanding Conditional Logic, Conditionals Explained
2022-02-19JavaScript Switch Cases, The Switch Keyword in JavaScript, Codecademy Programming Full Course 2022
2022-02-18How Else if Statements Work in JavaScript, Else if Statements Explained, Codecademy Programming ES6
2022-02-18How to Use the Ternary Operator in JavaScript, Ternary Operator Explained, Program with Codecademy
2022-02-18Truthy and Falsy Assignment in JavaScript, Short Circuit True False Assignment, Codecademy ES6 JS
2022-02-17Truthy and Falsy in JavaScript Programming, What is Truthy and Falsy in Programming, Codecademy 2022
2022-02-17Understanding JavaScript Logical Operators, Explained JS Logical Operators with Codecademy JS Course
2022-02-17JavaScript Comparison Operators Explained, Learning to Code with Codecademy, JS Programming Lessons
2022-02-17Learn about JavaScript If Else Statements, Understanding Conditional Statements with Codecademy Code
2022-02-17Learn About JavaScript If Statement, Conditional Statements on Codecademy, Program with JavaScript
2022-02-17Understanding What are Conditional Statements in 2022, JavaScript Programming with Codecademy
2022-02-17History of JavaScript Versions, ES6 and Before, JavaScript History Introduction, Codecademy Article
2022-02-17Learning JavaScript, Intro Quiz, Introduction to JavaScript Quiz on Codecademy Programming 2022
2022-02-17JavaScript Dog Years Converter, Convert Human Years to Dog Years 2022, Learn Programming, Codecademy
2022-02-16JavaScript Kelvin Weather Converter 2022, Kelvin to Celsius to Fahrenheit JavaScript Code Examples



Tags:
Coding
JS
JavaScript
Programming
Tutorials