Share
Explore

FRIDAY JANUARY 27 W23 LESSON Plan FOR MAD 6135

I. Introduction

Review of Day 01 material:
Interpreted compared to Compiled languages
What do use JavaScript for:
Browser: BOM Browser Object Model API
NODE: Console Object Model
Introduce the learning objectives for Day 02 : Working with JavaScript as a Programming Language

II. Variables and Control Flow

Discuss the use of variables and constants (let, const, var)
Compare and contrast between primitive types and Objects (von Neumann Architecture)
Demonstrate the use of primitive data types (Number, String, Boolean Objects)
Show examples of decision making structures (if, case, switch statements)
Provide examples of repetition structures (foreach, while, do-while, for loops)
Allow students to practice using these structures through code samples and exercises

III. Expressions, Operators, and Functions

Explain the use of arithmetic, comparison, and logical operators in basic programs

Discuss the use of Object and Array operators

Differentiate between different types of functions (declarations, expressions, anonymous functions): Worksheet on the 6 types of JavaScript Functions

Explain the concept of scope for variables [scope = visibility: which execution contexts are these variables accessible at)

Allow students to practice using these concepts through code samples and exercises


IV. Arrays and Object-Oriented Programming

In JavaScript: OBJECTS ARE Arrays!

Why? The original JS did not have OBJECTS. It was a 3rd GEN Procedural language. Later as JS became more popular, OBJECTS were introduced to support frameworks like REACT. OBJECTS were secretly snuck into JavaScript using Prototypes and the Prototypical Constructor.

Demonstrate the use of various array functions (searching, sorting, joining)

Show how to create custom classes and objects to represent real-world entities

Explain and apply inheritance and polymorphism in the context of OO systems

Allow students to practice creating and manipulating arrays and objects through code samples and exercises


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.