Linked List implementation. Sometimes pointer.val does contain a values yet throws “TypeError: Cannot read property 'val' of null”

后端 未结 0 712
夕颜
夕颜 2021-02-15 23:49

I\'m hitting while (pointer.val) { and getting this in my console. as you can see pointer.val is pointing to 8, the value of the head not, so it is not null. Hel

相关标签:
回答
  • 消灭零回复
提交回复
热议问题