let name="giorgi"
let age= 27

function gender() {
alert "men"
}
We can write all this as an object

let human= {
         name: "giorgi",
         age: 27,
         gender: "men",

//we can make function in objects too

     men() {
               alert "hello"
        },

//also we can make object in objects 

          favanimal {
              first:"dog",
              second:"cat"
     }   
}
by Gvanca Gharibashvili
2 years ago
JavaScript
0
Pro tip: use ```triple backticks around text``` to write in code fences