Learn how objects and classes work and why they are so usefull in coding.
This exercise includes
Technical SkillsTry this exercise
Create an account and get immediate access to this exercise
Already have an account?
Skill level
BEGINNER
Time to complete
4 hours
Access
Free
Prerequisites
None
See the content included in this exercise
Explore the fundamentals of object-oriented programming in JavaScript, including creating objects, defining classes, and using the constructor method.

Practice creating a Date object and formatting its output to display the current date as month-day-year.

Learn the syntax for creating a new JavaScript class and define a class called Person following the PascalCase convention.

Add your first properties to a Person class using camelCase naming and string values for name, last name, and birth date.

Update the constructor of the Person class to accept name, lastName, and birthDate as parameters so each object can have unique values.



Continue learning about this exercise's topics

Learn how objects and classes work and why they are so usefull in coding.
Try this exercise
This course is designed for students who are proficient in modern JavaScript and have read about TypeScript (basic and advanced). You will learn key concepts such as basic interfaces, type…
Try this exercise
**Learn JavaScript Arrays and Loops**: Master loops with an interactive tutorial packed with exercises. Get instant feedback from our AI mentor, auto-grading, and video solutions. Practice key concepts like for,…
Try this exercise
Enhance your Javascript programming skills with this comprehensive set of interactive and auto-graded exercises. These exercises cover fundamental topics such as variables, loops, conditionals, functions, and arrays. By completing these…
Try this exercise
165 JavaScript Exercises to Boost Your Skills: Perfect for practicing JavaScript object literals, functions, arrays, loops, and more! Strengthen your coding knowledge with hands-on exercises designed to improve your mastery…
Try this exercise
Master the art of HTML forms with interactive exercises that cover text inputs, text areas, date and numeric inputs, dropdowns, and more. Learn form validation, styling, and the key differences…
Try this exercise