Skip to content
RED SAGSkills
easy5 pts · first answer countshash-mapjavascriptdebugging

Checking a key by its value

stock is a Map from SKU to quantity. Why is if (stock.get(sku)) a bug for "is this SKU known"?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions