/Data can be stored as an array or as an object
let a = {
x:'6', y:10},
b = {
x: 8, y: 20};
function distant(a,b){
let dx = Number(a.x) - Number(b.x)
let dy = Number(a.y) - Number(b.y)
return Math.pow(dx*dx + dy*dy, .5)
}
Then write a simple example:
click on the debug preview, because we use console.log(a); print on the control panel. So press F12 to view the console view