# Test (2).js — getDim() (satır 710) [← Test (2).js](index.md) · [← Master](../../wiki.md) ```javascript function getDim(p) { try { return Number(p.getDimension()); } catch (e) { return 0; } } ```