text: #!/usr/bin/node
  class Rectangle {
    constructor (w, h) {
      if (w > 0 && h > 0) {
        this.width = w;
        this.height = h;
      }
    }
  
    print (printC = 'X') {
      let i;
      let j;
      let build = '';
      for (i = 0; i < this.height; i++) {
        if (i > 0) {
          build += '\n';
        }
        for (j = 0; j < this.width; j++) {
          build += printC;
        }
      }
      console.log(build);
    }
  
    rotate () {
      let tmp = this.width;
      this.width = this.height;
      this.height = tmp;
    }
  
    double () {
      this.width *= 2;
      this.height *= 2;
    }
  }
  module.exports = Rectangle;
  