Question: function component(width, height, col, x, y) { this.width = width; this.height = height; this.speedX = 0; this.speedY = 0; this.x = x; this.y = y;
This code works fine if I put it in one html document, however i need to have two files, one that is only the html and the other being javascript. Can anyone separate the code into the two files, html and javascript in order for it to work properly?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
