Console
hyTags
Home
Home
Documentation
Documentation
array-new
Creates a new empty array.
Parameter
Type
Description
type
Type
The type of elements the array will contain
return
[T]
New empty array
Test Case:
New empty array has size 0
<div></div>
<div></div>
<array-new type="string"> <array-get-size> <assert-equal value="0" type="number">
<array-new type="string"> <array-get-size> <assert-equal value="0" type="number">
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed