Writing code is a lot like putting together a jigsaw puzzle. We put together code with the purpose of building components that we have taken out of the “bigger picture” of the problem domain. The big issue is that many problem domains are like a puzzle with a blurry picture or no picture at all
If understanding the problem domain is the hardest part of programming and you want to make programming easier, you can do one of two things:
- Make the problem domain easier.
- Get better at understanding the problem domain.
You can often make the problem domain easier by cutting out cases and narrowing your focus to a particular part of the problem.
for more, you can read John Sonmez's post HERE.
Objects group together a set of variables and functions to create a model of a something you would recognize from the real world. In an object, variables and functions take on new names.
for more information read this book “Object Literals” (pp.107-116) HTML CSS.