0 - 11, and not
1 - 12, so we are correcting this by adding
- Using interfaces, classes, and inheritance - the Factory Design Pattern
- from Mastering TypeScript - Second Edition
- Publisher: Packt Publishing
- Released: February 2017
well, yes, but Date(year, month, date) also takes a month value of 0-11 according to docs, so you shouldn't add 1 here.
Share this highlighthttp://www.safaribooksonline.com/a/mastering-typescript-/9981011/