10/7-10/11


Javascript uses the function println to print a message to the screen.

Objective

Students will be able to…
* Write a JavaScript program by typing commands with proper syntax in the start function
* Write a program that prints out a message to the user


Variables are like a box that can hold values. The steps to using variables are to first define it to a certain type such as Boolean, string, or integer and using suggested naming conventions. Secondly, variables must be initialized to a start value, and to assign it to a variable type.

Objective

Students will be able to…
* Explain what variables are and what they are used for
* Create their own variables
* Print out the values stored in variables


User input is a cornerstone of any interactive program. In this lesson we learn how we can allow the user to input information into our programs. This will make our programs much more interactive and useful.

Objective

Students will be able to…
* Create programs that ask the user for input
* Store user input in variables and print it back to the user
* Choose the proper input function to use depending on the type of information needed


Computers are excellent machines for performing mathematical operations. In this lesson we learn about the different mathematical operators we can use to perform mathematical computations, and we create useful programs that compute useful information for the user.

Objective

Students will be able to…
* Describe the different mathematical operators we can use in programs
* Create programs that use basic math to compute useful things
* Create programs that take in user input, do simple computations with the input, and produce useful output


The basics of creating graphics objects to a screen relies on setting the type, shape, size, position, and color before on the artist’s canvas before adding to the screen. Using the geometric concepts, and the concept of getWidth() and getHeight(), multiple graphic objects can be created in JavaScript.

Objective

Students will be able to…
* Create graphical JavaScript programs that draw shapes on the canvas
* Locate points on the graphics canvas using (x, y) coordinates

Leave a Reply

Your email address will not be published. Required fields are marked *