How to Use JavaScript rotate() to Rotate Drawing Objects

How to Use JavaScript rotate() to Rotate Drawing Objects