You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a class Rectangle that defines a rectangle with a constructor with 2 arguments w = width and h = height.If w or h is equal to 0 or not a positive integer, create an empty object.
Write a class Rectangle that defines a rectangle with a constructor with 2 arguments w = width and h = height. If w or h is equal to 0 or not a positive integer, create an empty object. Create an instance method called print() that prints the rectangle using the character X
Modify 5-square.js. Create an instance method called charPrint(c) that prints the rectangle using the character c If c is undefined, use the character X.