reading-notes

Think you might be in the wrong place? Go home!

Explain why we need domain modeling.

It’s essential in software development to create a shared understanding of the problem, simplify complex issues, and organize code effectively.

Why should tables not be used for page layouts?

Using HTML tables for page layouts is discouraged because it hinders semantics, accessibility, responsiveness, and maintainability.

List and describe 3 different semantic HTML elements used in an HTML <table>.

Three examples include <header> for introductory content, <main> for the main content area, and <article> for independent content.

What is a constructor and what are some advantages to using it?

Constructors in JavaScript create and initialize objects. They promote object creation, initialization, code reusability, and inheritance.

How does the term ‘this’ differ when used in an object literal versus when used in a constructor?

In an object literal, ‘this’ refers to the object itself, while in a constructor, this points to the newly created object instance.

Explain prototypes and inheritance via an analogy from your previous work experience.

Think of prototypes as car blueprints, with each car being an instance inheriting the design. Customization can occur without altering the prototype, demonstrating inheritance and object modification while preserving a core structure.

Information gathered using ChatGPT