Skip to content

Instantly share code, notes, and snippets.

@tomatohammado
Last active November 20, 2019 19:17
Show Gist options
  • Save tomatohammado/b0ff1717a1917ce4050aa4d92c056262 to your computer and use it in GitHub Desktop.
Save tomatohammado/b0ff1717a1917ce4050aa4d92c056262 to your computer and use it in GitHub Desktop.
SEI 34 Week 2 Day 3 Homeroom Review 2019-11-20

JS Review leading into JS Debugging Lab

We should review stuff!

Topics We've Covered

  • Data Types
  • Conditional Statements
  • Loops
  • Functions
  • Objects and Context

Commits

It's a good habit to get into, but also keep it in mind as you're working.

Variables

const > let > var

Statements and Expressions

Functions

Functions can be treated as values

Declarations vs Expressions: hoisting


Data Types HW

Prompt 4: String Interpolation

Prompt 9: Nested Arrays

Prompt 10: Using Array.length

Control Flow HW

Prompt 8: Get Random Number, related to Math object

Prompt 11: Median, yeaaah not a well worded question

Prompts 12 and 13: Nested loops

Functions HW

Prompt 13: testFunc()()


Math Object

It Exists!

Get Random Element from Array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment