Module-Two-Variables-Strings-Numbers(1).pdf - COMP 1073 MODULE TWO VARIABLES OPERATORS AND STRINGS COMP1073 MODULE TWO VARIABLES OPERATORS STRINGS

Module-Two-Variables-Strings-Numbers(1).pdf - COMP 1073...

This preview shows page 1 - 10 out of 38 pages.

MODULE TWO VARIABLES, OPERATORS, AND STRINGS COMP 1073
Image of page 1
COMP1073 - MODULE TWO - VARIABLES, OPERATORS & STRINGS SCHEDULE Cool Links Review from last week Getting To Know Variables, Operators & Strings Putting It Into Practice Quiz One
Image of page 2
COMP1073 - MODULE TWO - VARIABLES, OPERATORS & STRINGS COOL STUFF - the-front-end-world-2544c1814e2
Image of page 3
COMP1073 - MODULE TWO - VARIABLES, OPERATORS & STRINGS RECAP FROM LAST CLASS … We can think of a website as a cake (what are the THREE layers?) We try to keep the layers as separate as possible JavaScript allows us to add INTERACTIVITY to our static webpages JavaScript can be used client-side or server-side
Image of page 4
COMP1073 - MODULE TWO - VARIABLES, OPERATORS & STRINGS LET’S GET STARTED!
Image of page 5
INTRO One of the most fundamental components of a programming language is the ability to store, update, and manipulate pieces of data. This week's lesson will focus on how JavaScript handles the creation of variables, the different types of data that can be stored in a variable, and how that data can be manipulated. COMP1073 - MODULE TWO - VARIABLES, OPERATORS & STRINGS
Image of page 6
OBJECTIVES This week, we will seek to achieve the following: Declare, initialize and update variables Differentiate between numbers, strings, booleans, arrays, and objects Conduct basic math operations including arithmetic, increment/decrement, assignment, and comparison Create and manipulate strings COMP1073 - MODULE TWO - VARIABLES, OPERATORS & STRINGS
Image of page 7
PART ONE - VARIABLES COMP1073 - MODULE TWO - VARIABLES, OPERATORS & STRINGS
Image of page 8
DECLARING VARIABLES Before using a variable in JavaScript, we need to DECLARE it type the keyword var or let followed by the name you want to call your variable var myName; COMP1073 - MODULE TWO - VARIABLES, OPERATORS & STRINGS
Image of page 9
Image of page 10

You've reached the end of your free preview.

Want to read all 38 pages?

  • Spring '19

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture