D
D
danyarubcov2019-03-30 23:08:23
Canvas
danyarubcov, 2019-03-30 23:08:23

TypeError: Canvas is not a constructor??

let canvas = new Canvas(1400,600); , throws an error on this line saying "Canvas is not a constructor"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2019-03-30
@Zoominger

Haven't coded in JS for a long time, but try:
let canvas = new canvas.Canvas(1400, 600)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question