Exercises: Introduction - Classes and Object Oriented Programming (OOP) - Javascript In Depth

Publicado el: 23 diciembre 2022
en el canal de: Tech with Nader
5,692
200

Let's take a look at some practice exercises to get more practice with Classes and Object Oriented Programming in Javascript together.

We warmup with a couple of examples of Classes with constructors and methods.

Then, we move to the interaction between Classes and their instances where we model a Bookstore and its Books.

We then move to a fun exercise where we try to model a simple Space Invaders style game. We go through some potential fields and methods of both the Player and Enemy in the game and what that might look like as well some some starting code for them.

We wrap up these exercises with a Bonus where we take a look at how we might implement a Factory Class/Function in Javascript. This is quite common in other languages like Java and allows us to create classes of various types from one "Factory" class.

This is part of a series where we go over Javascript in depth to learn programming concepts as well as web development:    • Javascript In Depth  

Chapters:
00:00 Introduction
00:45 Warmup Exercise - Animal Class
06:55 Exercise 1 - Student Class
15:43 Exercise 2 - Books in a Bookstore
25:14 Exercise 3 - Space Invader Modelling
45:38 BONUS Exercise - Enemy Factory
1:05:40 Next Steps

📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/javascript-...
💬 Come join us on Discord to chat with a like-minded community about tech and learning:   / discord  
🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon:   / techwithnader  


En esta página del sitio puede ver el video en línea Exercises: Introduction - Classes and Object Oriented Programming (OOP) - Javascript In Depth de Duración hora minuto segunda en buena calidad , que subió el usuario Tech with Nader 23 diciembre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 5,692 veces y le gustó 200 a los espectadores. Disfruta viendo!