reading-notes

These are my reading notes for Code Fellows


Project maintained by taegorov Hosted on GitHub Pages — Theme by mattgraham

Home

Reading Notes Code 201: Day 4

Notes - Chapter 15: “Layout” (pp.358-404)

Liquid layouts look absolutely awesome, so do fixed-width layouts. Okay, so do grid layouts. They seem the most modern.

Notes - Chapter 3 (first part): “Functions, Methods, and Objects” (pp.86-99 ONLY)

These allow us to organize our code

Functions - Notes

Functions combine statements together so you don’t have to keep reusing individual functions

Helps with code organization

Calling a function means you’re telling a function to do its own task.

…statements are not run until the function is called

  • Jon Duckett, JavaScript & Jquery

This will be super useful if you want to refer back to, or reuse, a bit of code.

Functions need info to perform their tasks. These are called parameters

Return values are when a function gives you an answer when you ask for it

Declaring Function Example:

function userName() {
document.write('this is your username');
}
userName();

You can use parameters to have code do a task without knowing all the information up front. For example, you can have a function multiply height by width, then decide what numeric values height and width have later on

Local variables vs. Global variables

Notes - Article: “6 Reasons for Pair Programming”