//In JavaScript there are no struct type
let size = {
width : 10,
height : 10
}
//the object literal notation is preferable
let point = new Object();
point.left = 5;
point["top"] = 5;
let rect = {
size : size,
point : point
}
console.log("rect.point.top =", rect.point.top);