reading-notes

Reading Notes for Codefellows!


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

Code 102

Reading 07

Introduction

Uses of JavaScript

  1. Access Content
  2. Modify Content
  3. Program Rules
  4. React to Events

Scripting

Summary

  1. A Script is a series of instructions for the computer to follow to achieve a goal.
  2. Each time a script runs it might only use a subset of the script
  3. Computers approach tasks differently than humans, so instructions must be concise and step by step
  4. Flowcharts can help with Designing a Script

Writing a Script

  1. Define the Goal
  2. Design the Script
  3. Code each Step

Basic JavaScript Instructions

  1. Expressions evaluates into a single result.
    1. Assigns a Value into a Variable
    2. Uses 2 or more values to create a single value result
  2. Operators are used in expressions to allow programmers to use multiple values and create a single result
    1. Assignment Operators
    2. Arithmetic Operators
    3. String Operators
    4. Comparison Operators
    5. Logical Operators

Functions

Functions allow you to group a series of statements to complete a task.

<– Back