We mentioned earlier that expressions set with setExpression() and expression() can be can removed with removeExpression(). This is simply done by calling removeExpression() and passing it a string indicating the property which you. d like to make non-dynamic. For example for box1, we could do the following:
box1.style.removeExpression('top')
This will then attempt to remove the expression from the top property. If this operation is successful, the return value from this method will be true; otherwise, it will be false. As you see, this method. s usage is almost a no brainier in most cases, but sometimes removing expressions can become a multi-step process. An example of this is shown in the next example on the next page.