mjavascript/practical-modern-javascript

code snippet mismatch

AmagiDDmxh opened this issue · 2 comments

The code is at the end of chapter 2.3.4.

It has a miswrite the '+' identifier in the sku: brand + ':' [] make

const getCarProductModel = ({ brand, make, model }) => ({
  sku: brand + ':' make + ':' + model,
  brand,
  make,
  model
})
getCarProductModel(car)

Hi. I'm not entirely certain what you mean. Could you ellaborate? Are we talking about the PDF version or the asciidoc source?

If this is about a rendering issue, this will be fixed in or before copy editing, if not please comment and I'll reopen the issue. Thanks! 🎉