Ravager (2) [Avatar] Offline
#1
Lesson 2 (page 16)

case CLEAR_ALL_ITEMS:
  items.splice(0, items.length);


Would that not be simpler as:

case CLEAR_ALL_ITEMS:
  items.length = 0;

513150 (1) [Avatar] Offline
#2
Thank you for uploading it because I have been learning this language and I have been looking for this solution anyway thanks for uploading this. Academic Help