Have you ever wondered what it would take to design/define a new data type in JavaScript? Everything is an Object in JavaScript. We all know that being a loosely typed language it is easy to define a new data type in JavaScript. But how to do a systematic design of the data type?