Closed Helen09 closed 5 years ago
Issue is that unshift returns the new length of the array, so the example block needs a let myUnusedValue =
in front of both unshifts.
Is the return value from unshift ever used? Seems like a really wonky behavior, but is true to actual javascript I suppose.
Describe the bug Block "list insert at beginning" doesn't show in tutorial example
Steps to reproduce the behavior
Expected behavior Block "list insert at beginning" should show in tutorial example
Actual behavior Block "list insert at beginning" doesn't show in tutorial example
Additional info: