Which statement explains what this line of code does?
var inventory = [];
(1 point)
Responses
creates a string called inventory
creates a string called inventory
creates a number called inventory
creates a number called inventory
creates an array called inventory
creates an array called inventory
prints inventory to the console
1 answer
creates an array called inventory