We've learned to work with just about all the fundamental tools that JavaScript has to offer: primitives, functions, arrays, looping, branching, and using built-in object methods and properties. We've also reinforced our know-how of using built-in object properties and methods by implementing Web APIs into our applications to make them interactive.
However, we've never actually created our own JavaScript objects, and in this section, that's just what we'll do! We'll learn:
We'll also learn more about events and Web APIs. We'll cover:
Event
objectNode
objectThere will also be lessons on new topics, and opportunities for further exploration:
At the very end of the section, we'll learn about whiteboarding, which is the process of solving a coding problem on a dry erase whiteboard (or in a text editor in remote environments) to demonstrate and communicate about your problem-solving process. The goal of introducing whiteboarding now is to expose you to the concept and process, and provide optional prompts to complete. (The exact schedule of whiteboarding will be up to your instructor.) Then, starting in the backend language course (C# or Ruby), you'll whiteboard at the end of most class sessions.
learn about JavaScript objects which collect data AND functions into a single object unit. We will see how business logic and user interface logic work together in the creation and updating of objects.
At the end of the section, you should be able to:
Important note: If you find video content helpful to your learning style, we recommend supplementing with external resources that include videos. Students have found helpful videos at the following online resources:
Of course, there are also many tutorials and videos available on YouTube as well.
At the end of this section, you will complete an independent project. Your code will be reviewed for the following objectives: