Heath Kelley

Logo

DeltaV Coding School 102 Reading Notes

View the Project on GitHub heathkelley230/reading-notes

[Home] [Growth Mindset] [What is Markdown?] [Coder’s Computer] [Revisions in the Cloud] [Getting Started With HTML] [CSS Beginner Basics] [Dynamic Web Pages With Javascript] [Computer Architecture and Logic] [Programming with JS] [Operators and Loops]

Discussion 7 Reading Notes

Pages 1-24

Examples of Javascript in a Web Browser

What Is a Script and How Do You Create One?

A script is a series of instructions like a recipe, handbook, or manual. Scripts are steps that the computer follows, and the scripts can respond to user input.

Writing a script starts with beginning with the end in mind. The user should:

Each individual task must be broken down into a sequence of steps. Flowcharts can be used to help visually display each step of the process.

Pages 74-79

The Basics of Expressions and Operators

Expressions may simply assign a value to a variable (e.g., var height = 6) or perform an operation such as var speed = 10 / 2. Expressions rely on operators. Operators can change values, perform mathemematical equations, concatenate strings, and other functions based on logic. Here are a few names and purposes of operators:

Pages 88-94

Functions

A function is a block of code that is meant to perform a specific task. Here are the basic steps in order to use a function:

  1. First, the function keyword must be used.
  2. Next, the user must give it a name and then write the statements in curly braces.
  3. Last the statement that performs the task will sit instide curly braces.
    This process is called declaring a function. Once declared, the user can call the function to perform other tasks by simply naming the function in one line of code.

Source: Duckett, J. (2014). JavaScript & jQuery : Interactive front-end web development. Indianapolis, IN: John Wiley & Sons.