.height() and .width()
The functions .height() and .width() can set an object's dimensions. .width() sets and object's x dimension, while .height() sets an object's y dimension. The functions take in one parameter, and object's desired dimension. These functions can also return an object's current dimension.
object.width(10);
//sets the width of 'object' to 10;
var height = object.height();
//sets variable 'height' to the height of 'object'
See Further:
- Space Bumpers