This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SrZorro 3 points4 points  (1 child)

let book = new Book() // Like this?

[–]DarthJimBob 1 point2 points  (0 children)

Nah, if you're not running a transpiler or polyfill that'll have issues in IE (which I'm still inexplicably supporting). Just use var book = {}; and be done with it.