reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 102: Class 06 - JavaScript


Read: JavaScript and jQuery Pages 43-69

HTML, CSS, and JavaScript the three languages of a website

JavaScript plain text language so it does not require any additional tools to start

Link to Do Along project pages 46-49

Objects and Methods

document.write('Good afternoon!');

JavaScript runs where it is found in the html, location maters.

Chrome Developer Tools Shortcuts

Script set of step by step instrucitons that a computer can follow, each should end with a ;

Variables

Data Types

Numeric Data Types String Data Types Boolean Data Types
Example = 0.75 Example = 'Hi, Ivy!' Example = true
For tasks involving counting or sums Enclosed in a pair of single or double quotes used for working with text True / False

Strings must always be surrounded by quotes either "string" or 'string' but not a combination. It must also be on one line.

6 Rules for naming variables

  1. must begin with a letter, dollar sign $, or underscore _
  2. no dashes -, or dots . are allowed in a name
  3. no keywords or reserved words are allowed
  4. names are case sensitive
  5. create a name that represents the information it stores
  6. use camelCase for names with more than one word

How do computers work? Video Notes

Computers take in information, stores info, processes it, and outputs calculation resutls.

Data and Binary

Circuits and Logic

Memory, CPU, Input, and Output

Hardware and Software


Return to reading-notes Deployed Site

Return to reading-notes Mark Down