SyntaxFix
Write A Post
Hire A Developer
Questions
you should write var element = []; in javascript {} is an empty object and [] is an empty array.
var element = [];
{}
[]