1 of 18

Slide Notes

DownloadGo Live

JavaScript

Published on Aug 16, 2020

No Description

PRESENTATION OUTLINE

JavaScript

Conditionals and Debugging

How's your state of mind?

`

Data and Variables

Let's Kahoot!

Concept Summary

1. Booleans

  • true or false
  • Comparison Operators
  • == != >
  • Your turn!
  • Example

Loose/Strict equality

  • == and ===
  • != and !==
  • Your turn.
  • Example
  • Use Strict.

Logical Operators

  • &&
  • ||
  • !
  • Your turn
  • Example

truth table for &&

  • A B A && B true true true true false false false true false false false false

truth table for ||

  • A B A || B true true true true false true false true true false false false

if Statements

  • if
  • else
  • else if
  • your turn
  • example

nested if

  • purpose
  • your turn
  • example

Exercise solution.

Errors and Debugging

Click to add more text here

nice talking

Photo by Timothy Dykes

types of errors

  • syntax
  • runtime
  • logic
  • example

debugging

  • error messages
  • console.log
  • google
  • example

best practices

  • TFD or TAD
  • incremental changes
  • find your style pairing/mobbing/forum

studio time!