JavaScript Programming I provides students with the knowledge and skills necessary to develop JavaScript enhanced web pages. Students will also learn the basic syntax of JavaScript and how to develop programs using JavaScript. This course may be repeated once for a maximum of 4 credit hours. This course was formerly CIS 147 Intro to JavaScript Programming.
WEB 105 with a grade of C or higher and credit or concurrent enrollment in PRG 110.
Students will:

1. Plan an interactive website

2. Integrate JavaScript into web page code

3. Define proper variables

4. Debug Code

5. Add interactive programming to static web pages

6. Program web applications

7. Use an interactive environment to code and debug programs

8. Design and implement programs to solve specific problems

9. Implement the basic structures of programming (if statements, case statements, looping)

10. Incorporate math functions into programs

11. Code control statements

12. Use Arrays to access data

13. Create functions

14. Use standard JavaScript objects to implement programs

15. Compare and contrast the difference between object oriented and object based programming

16. Handle exceptions and validate data

17. Write code to use properties and methods of the document object model

18. Write script to control CSS, tables, and forms

19. Use JavaScript libraries

I. Web Development with JavaScript

A. Components of client-server architecture

B. Differences in server processing of static and dynamic web pages

C. Core internet technologies (XHTML, CSS, the document object model, JavaScript)


E. Cross-browser compatibility, user accessibility

II. Coding JavaScript

A. Using a text editor to write code

B. Basic error finding using Firefox

C. Creating variables

D. Primitive data types

E. Escape sequences

F. Basic math

G. Objects

H. Decision making

I. Looping

J. Functions

III. Debugging

A. Firefox and Firebug

B. Tracing using alert

C. Setting breakpoints

D. View error messages

E. Command line testing

F. Syntax vs. run-time and logic errors

IV. Interaction with the user

A. Prompt/confirm methods

B. Various form controls

C. Span tags

D. Event handlers

V. Numbers, strings and dates

A. Working with numbers including isNaN

B. Working with strings

C. Working with dates

VI. Control Statements

A. If statements

B. Switch statements

C. Looping (while, do-while, for)

VII. Working with arrays

A. Arrays

B. Associative arrays

C. Arrays of arrays

VIII. Creating and using functions

A. Creating functions

B.Calling functions

C. Parameters/arguments

D. The “this” keyword

IX. Create and use objects

A. Create objects

B. Add properties and methods to object types

C. Use the delete operator

D. Use the for-in statement for looping

E. Use the instanceof and typeof operators

X. Handling exceptions and data validation

A. Matching patterns in strings

B. Create and throw an error object

C. Catch errors using a try/catch statement

XI. Basic DOM scripting

A. Access event object

B.Preload images

C. Use timers

XII. Manipulating CSS with JavaScript

A. Manipulate style sheets in a document

B. Manipulate the style of an element in a document

XIII. Using JavaScript Libraries

A. Downloading and installing a library

B. Creating a basic program with a library

Sample Projects


Web Resources

Software / Tools