Java Script
Java Script
http://brackets.io/
https://developers.google.com/web/tools/chrome-devtools/
Welcome to JavaScript
Write an alert in your browser.
As a linked js file
Write JavaScript
console.dir(document);
console.log('hello');
Comment blocks
Comments
Spacing on code
Reserved words
JavaScript Variables
EXERCISE:
Used to store data Output the variable c as "Hello World" into the
console of your browser when the page loads.
Variables in Action
Rules
Assignment operator
Increment ++ --
Modulus %
Assignment operators
= += =+ *= /=
Operators
Comparison Operators - used to check equal == greater than > less than < returns Boolean value
Select something, your computer, car, house, friend and describe them as a JavaScript object. What
are their properties and what are those values?
Arrays and Array methods
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Ar
ray
JavaScript Conditions
Lets you apply logic
JavaScript Switch
Execute code depending on the value of
the switch statement
JavaScript Loops
For loop
Do Loop
While Loop
Document Object Model
Selecting elements
Adding eventListeners
https://www.udemy.com/user/lars51/
Laurence Svekis