Skip to content

Instantly share code, notes, and snippets.

View rogerwschmidt's full-sized avatar

Roger Schmidt rogerwschmidt

View GitHub Profile
#!/bin/bash
apt-get update
apt-get upgrade
apt-get -y install nginx
apt-get -y install git
curl -sL https://deb.nodesource.com/setup_6.x -o ~/nodesource_setup.sh
bash ~/nodesource_setup.sh
apt-get -y install nodejs
apt-get -y install build-essential

Being a student in this program is like drinking from a firehose. It's going to feel like information is just gushing out of your instructors on a daily basis with no way to control the flow. Since you probably haven't been a student in a while, this article will help prepare you on how to be a sponge and retain as much of that information as possible.

Objectives

  • Describe why becoming a better learner is important.
  • Explain how to become a better learner using a three step process.
  • Identify a few personal strengths regarding this process.
  • Identify at least one personal weakness regarding this process.

Why is becoming a better learner important?

Learn to learn, intro, expectations setting

Objectives

  • Describe why becoming a better learner is important.
  • Explain how to become a better learner using a three step process.
  • Identify a few personal strengths regarding this process.
  • Identify at least one personal weakness regarding this process.

Data Types and Variables

Objectives

  • Describe the 5 different primitive data types in JS.

Conditionals and Loops

Objectives

  • Explain how if statements work.
  • Chain an if statement using else if and end with an else statement.
  • Explain how while loops work.
  • Build a while loop.
  • Describe how to avoid building an infinite loop.
  • Explain how for loops work, and explain what the setup, condition, and increment are.
  • Be able to answer why someone would choose to build a while or for loop.

Arrays

Objectives

Create an array and access array elements using JS.

CFU

Create an array literal that stores your three favorite cities as literal strings.
Print out each element individually.

Stretch:

Objects

Objectives

Describe the differences between objects and arrays.

With your neighbor, discuss the differences between objects and arrays.

Create objects using the object literal syntax.

Create an object literal that contains the following keys, and appropriate values:

Functions

Objectives

Describe the anatomy of a function definition.

Turn and speak with your neighbor, define and describe each of the parts of the following function

function createGreeting(name){
  var greeting = 'Hello ' + name + '!';
  return greeting;
}

More Practice with Functions

Objectives

Use function calls as values for expressions

Create a function named add that takes two parameters and returns the sum. 
Store the result (evaluation) of the function into a variable name total

Use function calls within other function calls

var total = add(subtract(10,9), subtract(11,4))

HTML/CSS review

Objectives

Describe how HTML structures it's elements.

Create a tree diagram for the following html code


<html>

The DOM

Objectives

Describe what the DOM is and why it is important for web applications that use js.

Turn to your neighbor and describe what the DOM is and why it is important for web applications

Add script tags to connect your HTML and your javaScript.

Create a script tag