Cpp Create Empty Array Javascript Length Function In Js