- Crush the Take Home -

Introductions

Objectives

Use variables, for loops, arrays, and basic
String & Number methods

Describe some of the different
data types in JavaScript

Describe & implement the accumulator pattern

Agenda

Introductions & Objectives

Data Types, Built-In Functions, & Methods

For Loops & the Accumulator Pattern

Q & A

LET'S HACK STUFF

repl.it

Go to repl.it and type in JavaScript

Copy the following into the box on the left
and then hit run (or Command + Enter)


    console.log('Hello World!')

Data Types

Programming languages rely upon a variety of data types to perform all kinds of computations

Today we'll cover the following:

  • Numbers
  • Strings
  • Lists (i.e. Arrays)

Built-In Functions & Methods

Functions are blocks of code that can be reused

Methods are functions that are associated
with an object

Numbers, Strings, and Arrays all have methods
that can be called on them

If that's too complicated,
functions/methods are magic!

BREAK

For Loops

What if we have a list where
we don't know the length?

For Loops allow us to make multiple
iterations over a list

You'll find them in all kinds of languages,
including JavaScript

Accumulator Pattern

Patterns give us more tools to solve
complex problems we come across

Learning a programming language is
like learning a speaking language

In this language, we typically write outside-in

Q & A

What questions do you have?

Crush the Take Home

By Wes Reid

Crush the Take Home

  • 743