Blog
Forcing A Constructor In JavaScript
Did you know that you can force a function to only act as a constructor? The following is an example of a Person pseudo-class which can be defined with or without the new keyword: One of the things that you may have noticed is the fact that I am throwing Read more…