Throughout the lecture, ask students how this or that would be done in Java; ask questions about tradeoffs between languages, or tradeoffs with the choices made by the designers of JavaScript. Ask the students to correct you if you say something wrong, because some of the students might know JavaScript much better than you. At the end of the lecture, ask if anyone has additional tips or advice or things to add. - demonstrate in the Chrome JavaScript console that if you enter "window" and expand it, there's a long list of global variables already in the global namespace. Demonstrate that, if you enter a statement like zeebra = "black and white"; and then list again the contents of "window", your zeebra variable is now at the end of it. - mention that, when searching for documentation online, it sometimes helps to add "HTML5" to your search query - explain why we sometimes see one of these in example code: that = this; self = this; thiz = this; http://stackoverflow.com/questions/962033/what-underlies-this-javascript-idiom-var-self-this - after showing how to use JavaScript to obfuscate an email address, talk about how JavaScript can be used to implement pull-down menus in a webpage, showing some examples like here: http://sixrevisions.com/javascript/20-excellent-javascript-navigation-techniques-and-examples/ - maybe show how to implement a timeout in JavaScript, and/or how to use setInterval(), and how these use callbacks - mention jQuery as one popular library, and how example code often uses a dollar sign as an abbreviation to access the global jQuery object - give tips for debugging JavaScript: try things in the interactive console; use console.log() and console.assert() statements; use the DOM inspector in the browser; use breakpoints. It seems there are many tricks for better using the console: https://developer.chrome.com/devtools/docs/console - show the code examples that use a Canvas and that use d3 - show an example of a JSON file, pointing out that it is human readable, easily output, and easily parsed - talk about other libraries: d3, cola.js, three.js, WebGL