1 2 3 4 5 6 7 8 9
function calculateWidth(parent) { var w = parent.width / 3 // ... // more javascript code // ... console.debug(w) return w }