JSFiddle - React, Tailwind, and code Playground

by eget teteete

JavaScript

function Point(x, y){
this.x=x;
this.y=y;

alert(this.x + this.y);
}

var p = new Point(15, 10);
var w = new Point(105, 10);
var e = new Point(150, 110);
var r = new Point(151, 120);