Instantiation Objects

Learning from AstroPlatformer

Code Runner Challenge

instantiation-objects

View IPYNB Source
%%js
// CODE_RUNNER: instantiation-objects

const p = new Object();
p.id = "p1"; p.x = 40;
const c = {id: "c1", x: 90};
console.log(p, c);

Lines: 1 Characters: 0
Output
Click "Run" in code control panel to see output ...