Undefined when trying to access object in Javascript
I'm creating a javascript program that prompt users to input coordinates (x,y) of 2 points of each line to do further functions. const numOfLines = parseInt(prompt("Please enter number of lines: ")); //point object function Point(x, y) { this.x = x;…