Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
JS ile OOP nin 50 tonu: Object Literals
const o = {
x: 42,
y: 3.14,
f: function() {},
g: function() {}
console.log(o1); // {w: "lorem ipsum", x: 42, y: 3.14, g: ƒ, h: ƒ}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment