Repository navigation
Session 1
Monica Kay edited this page Dec 3, 2021
·
2 revisions
- Introduce basic syntax used to declare variables and assign value to them
- Discuss the difference between
letandconst - Discuss the differences between basic data types: strings, numbers, and booleans
- Identify the assignment operator, i.e.,
=, and discuss how it differs from comparison operators, i.e.,===,>=, and<= - Introduce basic syntax and structure of an
ifstatement - Write an
if...elsestatement that will perform one of two possible operations based on a single condition
- Introduce basic syntax and structure of an array
- Discuss index positions and zero-indexing
- Write a
forloop to iterate an array - Identify and discuss the three sections of a
forloop: initialization, condition, and final-expression - Discuss the importance of using descriptive variable names
- Use dot notation to access an array's
lengthproperty - Use string interpolation to embed variable values into strings
- Use bracket notation to access values at specific index positions of an array
- Use the
.push()array method to append value to an array
- Introduce basic syntax and structure of an object
- defining keys and assigning values to them
- accessing the property values using dot notation
- syntax and structure
- parameters and arguments
- return value