reading-notes

Duckett: JavaScript & jQuery

JavaScript is the world’s most popular programming language. JavaScript is the programming language of the Web.

Intro + Scripts: Pages 1 - 24

we will learn about how the JAVASCRIPT MAKES WEB PAGES MORE INTERACTIVE.

  1. ACCESS CONTENT
  2. MODIFY CONTENT
  3. program rulse
  4. REACT TO EVENTS

Expressions + Operators: 74 - 79

EXPRESSIONS

expression An evaluates into (results in) a single value.

  1. EXPRESSIONS THAT JUST ASSIGN A VALUE TO A VARIABLE.

var color = 'beige';

  1. EXPRESSIONS THAT USE TWO OR MORE VALUES TO RETURN A SINGLE VALUE.

var area = 3 * 2;

OPERATORS

Expressions rely on things called operators;

Functions: 88 - 94

Functions consist of a series of statements that have been grouped together because they perform a specific task.

note: function is only ca lled on the last line of this script.

var msg = 'Sign up to receive our newsletter for 10% off!'; function updateMessage() { var el = document.getElementByld('message'}; el .textContent = msg; } updateMessage(};