#Unit 5 - JavaScript 1.1
##Synopsis This unit starts with an introduction to variables. Students will learn how to create, instantiate, and edit variables. Next they will learn how to call and create functions. They will also be exposed to functions helpful for debugging. They will learn how to generate a random number.
##Lessons
##Codecademy Resources The following CodeCademy lessons correspond and will help student understand the concepts in this unit. The teacher may choose to assign these lessons if they would like.
- Javascript - Getting Started with Programming - covers introduction to basic types and variables.
##Standards
####CPP.L2-05 I - Variables
- Student can create, name, and assign values to variables.
- Student understands and can explain variable creation, reassignment, and scope.
####CPP.L2-05 I - Math Operators
- Student can employ math functions such as
pow
,rand
,ceiling
, andfloor
to manipulate numbers. - Student understands JavaScript operator precedence and can use it to predict the effect of an expression.
- Student can recognize augmented assignment operators (
i+=1
) and can decompose them to simpler syntax. - Student can generate random numbers and control their range to produce complex behavior in interactive pages.
- Student can handle
null
,NaN
orundefined
inputs to calculations when solving programming problems.
####CL.L3B-03, CL.L2-04, CL.L3B-01
- Student can plan a project with teammates (using wire frames, specifications / requirements, and pseudocode).
- Student can maintain a design by contract relationship with other team members; student can write clear code; student can explain code by including clarifying comments in their code.