+ All Categories
Home > Documents > BINGO · 2019. 3. 4. · Changing the Object numChildren = 0 1 var animal What if the bird had a...

BINGO · 2019. 3. 4. · Changing the Object numChildren = 0 1 var animal What if the bird had a...

Date post: 27-Jan-2021
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
19
Transcript
  • BINGO

  • Ginni Rometty

  • Ginni Rometty

  • Objects and If Statements

  • Review of Variables

  • Object

  • Object

    type = “Bird”name = “Birdy the Bird”color = “red”numChildren = 0canFly = true

    var animal

  • Changing the Object

    numChildren = 0 1

    var animalWhat if the bird had a child? Then numChildren would be 1 instead of 0.

  • Changing the Object

    Updating numChildren to be one

    Written in code

  • If Statement

  • If Statement

    else

  • If Statement

    ( )

    else

  • If Statement

    ( ) {

    } else

  • If Statement

    ( ) {

    } else {

    }

  • If Statement

    ( ) {

    } else

    }

  • https://tinyurl.com/

    summer-not-in-Ithaca

  • Day 3 Projects!AnimationsIf/Else

    Objects


Recommended