Programming for Computer Lovers (M 211) Topics

What is JavaScript?

Setting up a web site to contain and display scripts.

Web sits for learning and reference:

Interacting with the site visitor: Alter (say hello) and prompt (ask visitor's name). Example programs.

Data Types & Math (add, subtract and multiple numbers need parseInt) (math problem)

Syntax- upper/lower case, ";", "( )" vs "[ ]" vs "{ }"

Logic, sequence, conditional, loop

Conditions: if (state capital quiz) and switch/case (day of the week)

Variable versus literals

HTML JavaScript connection (text size)

Objects, properties, methods, functions and events. Example programs

  • Event: onLoad and on unload (visit length time)

  • Event onMouseOver (status message), onMouseOut, onClick (picture display)

  • Method toUpperCase (state capital quiz)

  • Time: setTimeout event, getHours, getMinutes, getSeconds methods (clock problems)

Looping with while and do while. (counting)

Arrays (animated images)

Adapting and incorporating JavaScripts available on the web.

What's next - how to use these tools at home