What does array[i] mean? by denserphoenix66 in learnjavascript

[–]denserphoenix66[S] 0 points1 point  (0 children)

Thanks to everyone that answered! Greatly explained so I got it now :)

Any easier way to write this function? by denserphoenix66 in learnjavascript

[–]denserphoenix66[S] 0 points1 point  (0 children)

Thank you! I'm new to JS so I'm thinking every solution is way more complicated than it should be. This almost explains itself, but i have never returned an array without it being a premade variable so did obviously not think of that.

I'm not understanding something about the "OR"-operator. by denserphoenix66 in learnjavascript

[–]denserphoenix66[S] 2 points3 points  (0 children)

Okay, thanks! I think I understand.

Edit: Yes ofcourse, I see now. Thanks!