JavaScript Map and Set quiz, 2 questions:
1. ids.get(1), ids.get("1") on a Map: what prints?
2. Size of a Set after two adds?
Answers in the last image. Reply with yours.
#JavaScript#Coding
JavaScript reduce() explained
[5, 10, 20].reduce((sum, price) => sum + price, 0) gives 35
A list in, one value out. Always pass the start.
#JavaScript#Coding