
Jerry T. answered 07/12/19
USC Grad for Programming and Web Development Tutor
In Javascript, we define a function as such:
Here, "myFunction" is the name of the function we have declared, and arg1/arg2 are the arguments passed into the function. Since the BASIC function takes four arguments, we would want our function signature to look like this:
I'm not sure what column and row refer to, but if we assume they are x,y pixels on the screen, we can use the Canvas API https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API to draw on an HTML <canvas> element.