How to get absolute Position of an Object in JavaScript?

How to get absolute position like in the editor?

let vPos = new Float32Array(3);

this is the compact example
you should reuse the vPos by defining it in the init() or start()
to prevent lots of allocations causing lots of garbage collection
so in init() you could have

this.vPos = new Float32Array(3);

then in the update you have