Put in order · Vibe coding with Claude Code course · Module 14: Pinterest clone

Sorting: A price in the product's currency

Put in order the expression from formatPrice that shows the price in the product's currency:

Items to put in order

  • new Intl.NumberFormat(
  • product.price)
  • { style: "currency", currency: product.currency })
  • .format(
  • locale,

You can check the correct answer by solving this task in the CodeWorlds game.