Cpp Get Size Of Array Javascript Push To Beginning Of The End