You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • I restructured my data in "days" a few times and lost understanding of what I was dealing with. I thought that it was an object as I couldn't reference its contents with an index e.g

    console.log(days[2].hour);
    

    Firefox console says:

    TypeError: days[2] is undefined
    

    If it's an array after all, then I'll do some more reading about arrays. Thanks

  • Wed 2020.02.05

    TypeError: days[2] is undefined
    

    re: post #5

    OPTION BASE ZERO   vs   OPTION BASE ONE

    Referencing the element using indexer 2 when there are only two elements using Option Base Zero, will yield undefined as a result, since there is only element zero and element one.

About

Avatar for Robin @Robin started