reading-notes

Class 6 - Activate Web Pages with JavaScript

JS logo

Lab 6 - Activate Web Pages with JavaScript

Requirements

  1. Add at least 3 dynamic component to web page.Can be based on user unput ot other dynamic input
  2. At least one dynamic component should be based on user input.
  3. At least one dynamic component should use a conditional statement to determine the output.
  4. Stretch goals: Try out the confirm() function, in addition to prompt(). When’s the right time to use this?

Written Class Notes

Read 6 - Activate Web Pages with JavaScript Reflection and Discussion

Resources Link/Pages

  1. JS Intro Paragraph
  2. Introduction to Javascript - Basic Output
  3. Javascript Input with Prompt and Confirm
  4. Variables
  5. How Computers Work - Playlist
    • They take input: what you tell computer to do
    • Store it and process it: takes from memory to maniplate or change through commands and it sends information back to stored memory and continues this process until information is ready to be sent to output.
    • Output: Depends on what the computer is designed to do. When connected to the internet, output from a computer is input to another
    • On/off state of a wire = bit, smallest piece of info a computer can store
    • Binary: 1 and 0 system used in computers
    • Circuits: electronic wires that move electricity and help operations in devices
    • CPU: Central Processing Unit, performs instructions
    • Hardware: physical parts of a computer
    • Software: Programs that give hardware instructions
    • Operating System: software that manages hardware and runs programs

Answer

  1. What are variables in JavaScript?
    • Containers for storing data
  2. What does it mean to declare a variable?
    • Assigning a name to future values
  3. What is an “assignment” operator, and what does it do?
    • Its = and it gives value to a variable
  4. What is information received from the user called?
    • Input