Chapter 3


CS 103 Introduction to JavaScript
    


     

This chapter will introduce the programming language known as JavaScript, not to be confused with the unrelated language called Java. JavaScript is used on the Internet to make webpages dynamic and interactive.

Lesson 1 - What is JS used for?
                What does it look like?


Lesson 2
- Line and block comments
                document.write()
                document.writeln()

Lesson 3
- Variable Assignments
                Expressions

Lesson 4
- Control Structures

Lesson 5
- Functions

Objectives

  1. To gain an understanding of what JavaScript is and what it looks like.
  2. To learn what comments are and why and how to use them.
  3. To learn what variables are and how programs are structured.
  4. To gain an understanding of how to change the flow of a program through the use of control structures.
  5. To learn how to create and call reuseable blocks of code called functions.

Top