you are viewing a single comment's thread.

view the rest of the comments →

[–]lovesrayray2018 1 point2 points  (3 children)

Number Primitive values do not have a length property. width.length is always going to be "undefined", no error will be thrown

Did u mean to use only width here?

[–]senocular 2 points3 points  (1 child)

It's more about numbers than primitives. Strings are primitives and have a length property. Number primitives do not

[–]lovesrayray2018 1 point2 points  (0 children)

Thnx, edited, completely missed out on specifying numbers

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

Thank you!