Functions 2 test review?
const canvas = document.querySelector(‘canvas’);
const ctx = canvas.getContext('2d');
const x1 = 50;
const y1 = 60;
const width = 100;
const height = 75;
const color = 'blue';
// Add your code here
const drowRect = function() {
ctx.clearRect(x1, y1, width, height);
ctx.fillStyle = color;
ctx.fillRect(x1, y1, width, height);
}
drowRect();
const section2 = document.querySelector(’.preview-function2’);