Recap - Simple Logic
Part of the Fundamentals section of Coddy's JavaScript journey — lesson 20 of 77.
Challenge
BeginnerYou are given a code, replace the question marks of the variables b1, b2 and b3 so that b4 will hold True.
Try it yourself
let b1 = ?
let b2 = ?
let b3 = ?
// Don't change the line below
let b4 = b1 && b2 && (!b3)
console.log(`b4 = ${b4}`)All lessons in Fundamentals
4Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3Type Coercion7Bill Split Calculator
Welcome MessageCalculating The Tip And Total2Variables
NumbersStringBooleanNaming ConventionsEmpty VariablesRecap - Initialize VariablesConstants3Operators Part 1
Arithmetic OperatorsModulo OperatorArithmetic ShortcutsComparison OperatorsStrict vs Loose EqualityRecap - Simple Math6Basic IO
OutputOutput with VariablesType Conversion - Part 1Type Conversion - Part 2Recap - Till 120Recap - True or False