please dont rip this site

JavaScript Tutorial

(for CSE 90025 FUTURES HTML5 and JavaScript)
9 sessions of 3 hours each with a 30 minute break so 2.5 hours per day 2.5*9=22.5 hours.

Sections:

  1. Intro and start Basics
  2. JavaScript Basics
  3. Object Oriented JavaScript
  4. Basic DOM Interaction
  5. Event Handling
  6. Animation
  7. Building Interactive Webpages aka Games
  8. Projects
  9. Conclusions / Presentations

Introduction:

Behavior:

Do no harm. And other advice.

Practice  Iterative Design.

Respect others. Do not distract. Do not belittle. Special care will be taken for women and minorities as they are regularly disrespected. Racism or sexism in any form will NOT be tolerated in this class!

History.

GitHub account setup post your first code (from the first excercise) and raise an issue on the class repo introducing yourself.

DevTools Console is a sort of IDE built into every copy of Chrome

Troubleshooting and Common errors and Cuiosities in Javascript

Glossary

Excercises:

https://www.javascript.com/

Short Circuits

'cat' && 'dog' what does that return? Why? How might that be useful?

'cat' || 'dog' what does that return? Why? How might that be useful?

hints: && is logical AND which needs to know that both values are true. || is logical OR and doesn't need to know the second value if the first is true. 'cat' and 'dog' both evaluate to true.

var attrib = obj && obj.subobject && obj.subobject.attribute || 'default'
or if attribute is just one level down, use:
var attrib = obj ? obj.attribute : 'default'

var thing = getThing(parameter) || reporterror(message)
Keeps the focus on the expected action but still handles occasional errors. e.g.
var contents = fs.open('filename') || process.exit(1) (actually only useful in node)

See also:


file: /Techref/language/java/script/tutorial.htm, 4KB, , updated: 2020/6/10 14:15, local time: 2020/7/14 16:18,
TOP NEW HELP FIND: 
3.236.126.101:LOG IN

 ©2020 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.piclist.com/techref/language/java/script/tutorial.htm"> JavaScript Tutorial</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2020 contributors:
o List host: MIT, Site host massmind.org, Top posters @20200714 RussellMc, Bob Blick, Jason White, Neil, David C Brown, Harold Hallikainen, madscientistatlarge, Sean Breheny, Allen Mulvey, James Cameron,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .