JavaScriptSyntax
Array Length
Code example
items.lengthReturns the number of items in an array or string.
In JavaScript, array length: returns the number of items in an array or string — items.length
items.lengthitems.lengthReturns the number of items in an array or string.
Use items.length.
Use this pattern: items.length
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.